/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, border 0.3s ease;
}

a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
    width: 30px;
    height: 30px;
    border-color: var(--primary);
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Logo Glitch Animation */
.logo-glitch {
    position: relative;
    display: inline-block;
    color: var(--primary);
}

.logo-glitch::before,
.logo-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.logo-glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.logo-glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    /* Animation keyframes as in original */
}

@keyframes glitch-anim2 {
    /* Animation keyframes as in original */
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 0 2rem;
    position: relative;
}

.glitch-container {
    margin-bottom: 2rem;
}

.glitch {
    font-size: 7rem;
    font-weight: 800;
    position: relative;
    color: var(--light);
    letter-spacing: 1px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--secondary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

.hero-subtitle {
    font-size: 2.4rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.typewriter {
    display: inline-block;
    position: relative;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--primary);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.txt-rotate {
    color: var(--primary);
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    animation: fadeInUp 2s ease infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gray);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 6px;
    background: var(--light);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.scroll-text {
    font-size: 1.4rem;
    color: var(--gray);
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    0% { opacity: 0.2; transform: translate(-50%, 10px); }
    100% { opacity: 0.6; transform: translate(-50%, 0); }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    align-items: center;
}

.about-text .large-text {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    color: var(--light);
}

.about-text p {
    margin-bottom: 2.5rem;
    color: var(--gray);
    font-size: 1.7rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--gray);
}

.about-cta {
    display: flex;
    gap: 2rem;
}

.about-image {
    position: relative;
}

.image-glitch-effect {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
}

.image-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://via.placeholder.com/600x800');
    background-size: cover;
    background-position: center;
    filter: grayscale(20%) contrast(1.1);
}

.image-glitch::before,
.image-glitch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://via.placeholder.com/600x800');
    background-size: cover;
    background-position: center;
    filter: grayscale(20%) contrast(1.1);
    opacity: 0.8;
}

.image-glitch::before {
    left: 2px;
    background-color: rgba(59, 130, 246, 0.2);
    animation: glitch-image 2s infinite linear alternate-reverse;
}

.image-glitch::after {
    left: -2px;
    background-color: rgba(16, 185, 129, 0.2);
    animation: glitch-image2 3s infinite linear alternate-reverse;
}

@keyframes glitch-image {
    /* Animation keyframes as in original */
}

@keyframes glitch-image2 {
    /* Animation keyframes as in original */
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    background: var(--dark);
    color: var(--gray);
    font-size: 1.4rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.project-card {
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    align-self: flex-start;
    backdrop-filter: blur(5px);
}

.project-links {
    display: flex;
    gap: 1.5rem;
    align-self: flex-end;
}

.project-link {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.project-link:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
}

.project-info {
    padding: 2rem;
}

.project-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.project-description {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-tech span {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    border-radius: var(--radius-full);
}

.projects-more {
    text-align: center;
    margin-top: 3rem;
}

/* Tech Stack Section */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--light);
    position: relative;
    padding-left: 1.5rem;
    display: inline-block;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: var(--primary);
    border-radius: var(--radius-sm);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.skill-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-info {
    flex: 1;
}

.skill-info h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--light);
}

.skill-level {
    height: 8px;
    background: var(--dark);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.skill-bar.animate {
    width: var(--level);
}

/* Experience Section */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 6rem;
    padding-left: 3rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 2px;
    height: calc(100% - 10px);
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
    padding-left: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark);
    border: 2px solid var(--primary);
    z-index: 1;
}

.timeline-item.current .timeline-marker {
    background: var(--primary);
}

.timeline-date {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.timeline-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.timeline-company {
    font-size: 1.6rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.timeline-description {
    padding-left: 2rem;
}

.timeline-description li {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
    position: relative;
}

.timeline-description li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.9rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.education {
    max-width: 800px;
    margin: 0 auto;
}

.education-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--light);
    position: relative;
    display: inline-block;
}

.education-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.education-card {
    background: rgba(17, 24, 39, 0.7);
    border-radius: var(--radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    z-index: 1;
}

.education-header {
    padding: 2.5rem 2.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.education-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 2;
}

.education-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--primary);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.education-title {
    flex: 1;
}

.education-degree {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.education-institute {
    font-size: 1.6rem;
    color: var(--gray);
    font-weight: 500;
}

.education-content {
    padding: 2rem 2.5rem;
}

.education-details {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.education-year {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 500;
}

.education-year i {
    font-size: 1.2rem;
}

.education-score {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: var(--light);
}

.education-score span {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.8rem;
}

.education-description {
    font-size: 1.5rem;
    color: var(--gray);
    line-height: 1.6;
    margin-top: 1.5rem;
}

.education-achievements {
    margin-top: 2rem;
}

.achievement-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.achievement-title i {
    color: var(--primary);
}

.achievements-list {
    padding-left: 2rem;
}

.achievements-list li {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
    position: relative;
}

.achievements-list li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.8rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .education-container {
        grid-template-columns: 1fr;
    }
    
    .education-header {
        padding: 2rem 2rem 0.5rem;
    }
    
    .education-content {
        padding: 1.5rem 2rem;
    }
    
    .education-degree {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .education-icon {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 2rem;
    }
    
    .education-degree {
        font-size: 1.8rem;
    }
    
    .education-institute {
        font-size: 1.4rem;
    }
    
    .education-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
.image-glitch-effect {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: #030712;
  }
  
  .image-glitch-effect canvas {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  /* Add a subtle glow effect to make it stand out */
  .image-glitch-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    pointer-events: none;
  }

.education-item {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    gap: 2rem;
}

.education-item:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow);
}

.education-icon {
    font-size: 2.4rem;
    color: var(--primary);
}

.education-content {
    flex: 1;
}

.degree {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--light);
}

.institution {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.year, .score {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}

.contact-heading {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--light);
}

.contact-heading span {
    color: var(--primary);
}

.contact-text {
    font-size: 1.7rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.contact-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-detail h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.contact-detail p {
    font-size: 1.6rem;
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--dark);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-5px);
}

.contact-form-container {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray);
    padding: 1rem 0;
    font-size: 1.6rem;
    color: var(--light);
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1.6rem;
    color: var(--gray);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--primary);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-2rem);
    font-size: 1.2rem;
    color: var(--primary);
}

.form-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.form-group input:focus ~ .line,
.form-group textarea:focus ~ .line {
    width: 100%;
}

.btn-submit {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .glitch {
        font-size: 6rem;
    }
    .section-number {
        font-size: 10rem;
    }
}

@media screen and (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .about-image {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .glitch {
        font-size: 5rem;
    }
    .projects-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1.5rem;
        justify-content: flex-start;
    }
    .filter-btn {
        white-space: nowrap;
    }
}

@media screen and (max-width: 576px) {
    .glitch {
        font-size: 4rem;
    }
    .about-cta {
        flex-direction: column;
    }
    .contact-form-container {
        padding: 3rem 2rem;
    }
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Graphics Section Styles */
.graphics, .cgi {
    padding: 10rem 5%;
    min-height: 100vh;
}

.graphics-container, .cgi-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.graphics-intro, .cgi-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.graphics-heading, .cgi-heading {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.graphics-heading::after, .cgi-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.graphics-text, .cgi-text {
    font-size: 1.8rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Graphics Grid */
.graphics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.graphics-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 380px;
}

.graphics-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.3);
}

.graphics-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.graphics-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.graphics-item:hover .graphics-image img {
    transform: scale(1.1);
}

.graphics-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.graphics-item:hover .graphics-overlay {
    transform: translateY(0);
}

.graphics-overlay h4 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.8rem;
}

.graphics-overlay p {
    font-size: 1.4rem;
    color: var(--gray);
}

.graphics-more, .cgi-more {
    text-align: center;
    margin-top: 3rem;
}

/* CGI Videos Section */
.cgi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.cgi-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--dark);
}

.cgi-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.3);
}

.cgi-video-container {
    position: relative;
    width: 100%;
    /* Create 9:16 aspect ratio container */
    padding-top: 177.78%; /* 16:9 would be 56.25%, but 9:16 is 177.78% (16/9 * 100) */
    background: #000;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.cgi-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.cgi-video-container video.horizontal-video {
    object-fit: contain;
    background: #000;
}

.cgi-info {
    padding: 2rem;
}

.cgi-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.cgi-description {
    font-size: 1.6rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Play Button Overlay */
.cgi-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.4);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cgi-video-container::after {
    content: '\f144';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    color: var(--primary);
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cgi-item:hover .cgi-video-container::after {
    opacity: 1;
    color: var(--light);
    text-shadow: 0 0 20px var(--primary);
}

.cgi-item:hover .cgi-video-container::before {
    opacity: 0.6;
}

/* Playing state */
.cgi-video-container.playing::before,
.cgi-video-container.playing::after {
    opacity: 0;
}

/* Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .graphics, .cgi {
        padding: 8rem 5%;
    }
    
    .cgi-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media screen and (max-width: 992px) {
    .graphics-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cgi-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .graphics-heading, .cgi-heading {
        font-size: 2.8rem;
    }
    
    .graphics-text, .cgi-text {
        font-size: 1.6rem;
    }
    
    .graphics-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    /* Add this line to change graphics item height on tablets */
    .graphics-item {
        height: 300px;
    }
}

@media screen and (max-width: 576px) {
    .graphics, .cgi {
        padding: 6rem 3%;
    }
    
    .graphics-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Add this line to change graphics item height on mobile phones */
    .graphics-item {
        height: 260px;
    }
    
    .graphics-overlay h4 {
        font-size: 1.8rem;
    }
    
    .graphics-overlay p {
        font-size: 1.3rem;
    }
    
    .cgi-title {
        font-size: 2rem;
    }
    
    .cgi-description {
        font-size: 1.5rem;
    }
}

/* Animations */
.graphics-item, .cgi-item {
    opacity: 0;
    transform: translateY(30px);
}

.graphics-item.animate, .cgi-item.animate {
    animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation delay for staggered effect */
.graphics-item:nth-child(1), .cgi-item:nth-child(1) { animation-delay: 0.1s; }
.graphics-item:nth-child(2), .cgi-item:nth-child(2) { animation-delay: 0.2s; }
.graphics-item:nth-child(3), .cgi-item:nth-child(3) { animation-delay: 0.3s; }
.graphics-item:nth-child(4), .cgi-item:nth-child(4) { animation-delay: 0.4s; }
.graphics-item:nth-child(5), .cgi-item:nth-child(5) { animation-delay: 0.5s; }
.graphics-item:nth-child(6), .cgi-item:nth-child(6) { animation-delay: 0.6s; }