:root {
            --primary: #1a2533;
            --secondary: #2d3e50;
            --accent: #1e3a5f;
            --accent-glow: #2563eb;
            --dark: #2d3436;
            --light: #ffffff;
            --gradient: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-glow));
        }
        
/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }
        
*, *::before, *::after {
    box-sizing: border-box;
}

        body {
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
            font-size: 14px;
            overflow-x: hidden;
            max-width: 100vw;
        }
        html {
            scroll-behavior: smooth;
            width: 100%;
            max-width: 100%;
        }
        
        /* Header/Navigation */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 20px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #ffffff;
            box-shadow: 0 2px 15px rgba(26, 37, 51, 0.15);
            transition: all 0.3s ease;
        }
        
        header.scrolled {
            padding: 15px 5%;
            background-color: #ffffff;
        }
        
        .logo {
            font-size: 18px;
            font-weight: 700;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-decoration: none;
            letter-spacing: -0.5px;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 30px;
        }
        
        nav ul li a {
            color: var(--dark);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }
        
        nav ul li a:hover {
            color: var(--primary);
        }
        
        nav ul li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background: var(--gradient);
            transition: width 0.3s ease;
        }
        
        nav ul li a:hover::after {
            width: 100%;
        }
        
        .menu-toggle {
            display: none;
            cursor: pointer;
            font-size: 20px;
            z-index: 1001;
        }
        
        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
                position: relative;
                width: 40px;
                text-align: center;
            }
        }
        
        /* Fixed Social Icons - Right Side Column */
        .fixed-social-icons {
            position: fixed;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 20px;
            z-index: 999;
        }
        
        .fixed-social-icons a {
            color: var(--dark);
            font-size: 22px;
            transition: all 0.3s ease;
            opacity: 0.7;
        }
        
        .fixed-social-icons a:hover {
            color: var(--primary);
            opacity: 1;
            transform: scale(1.1);
        }
        
        @media (max-width: 768px) {
            .fixed-social-icons {
                right: 10px;
                gap: 15px;
            }
            
            .fixed-social-icons a {
                font-size: 18px;
            }
        }
        
        /* Hero Section with Profile */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 0 5%;
            position: relative;
            overflow: hidden;
            width: 100%;
        }
        
        @media (min-width: 769px) {
            .hero {
                justify-content: space-between;
            }
            
            .hero-content {
                max-width: 55%;
            }
        }
        
        .hero-content {
            max-width: 600px;
            z-index: 2;
        }
        
        .hero h1 {
            font-size: clamp(28px, 5vw, 48px);
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
        }
        
        .hero h1 span {
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .hero p {
            font-size: 15px;
            margin-bottom: 30px;
            color: #636e72;
            max-width: 500px;
        }
        
        @media (max-width: 768px) {
            .hero p {
                max-width: 100%;
            }
        }
        
        .btn {
            display: inline-block;
            padding: 12px 30px;
            background: var(--gradient);
            color: white;
            border-radius: 30px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
        }
        
        .btn-outline {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
            margin-left: 15px;
            box-shadow: none;
        }
        
        .btn-outline:hover {
            background: var(--gradient);
            color: white;
            transform: translateY(-3px);
        }
        
        /* Large Profile in Hero */
        .hero-profile {
            position: absolute;
            right: 15%;
            width: 25%;
            max-width: 550px;
            height: 60vh;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
            transition: all 0.5s ease;
        }
        
        .hero-profile img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
            -webkit-user-drag: none;
            user-select: none;
            pointer-events: none;
        }
        
                
        /* About Section */
        .section {
            padding: 65px 5%;
            position: relative;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
        }
        
        .section-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 50px;
            text-align: center;
        }
        
        .section-title span {
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .about-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 50px;
            background: white;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(26, 37, 51, 0.12);
        }
        
        .about-text {
            flex: 1;
            min-width: 300px;
            background: white;
            padding: 30px;
            border-radius: 10px;
        }
        
        .about-text h3 {
            font-size: 24px;
            margin-bottom: 20px;
        }
        
        .about-text p {
            margin-bottom: 20px;
            color: #636e72;
        }
        
        .skills {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 30px;
        }
        
        .skill {
            background: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }
        
        .skill:hover {
            transform: translateY(-3px);
        }
        
        /* About Cards Container */
        .about-cards-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            width: 100%;
        }
        
        .about-card {
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(26, 37, 51, 0.12);
        }
        
        .about-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .about-card-header i {
            font-size: 1.5rem;
            color: var(--accent-glow);
        }
        
        .about-card-header h3 {
            font-size: 1.3rem;
            color: var(--dark);
            margin: 0;
        }
        
        .about-card-body h4 {
            font-size: 1.1rem;
            margin-bottom: 15px;
            color: var(--dark);
        }
        
        .about-card-body p {
            color: #636e72;
            line-height: 1.7;
            margin-bottom: 15px;
            text-align: justify;
        }
        
        .about-card-body p:last-child {
            margin-bottom: 0;
        }
        
        /* Skills Category */
        .skills-category {
            margin-bottom: 20px;
        }
        
        .skills-category:last-child {
            margin-bottom: 0;
        }
        
        .skills-category h5 {
            font-size: 0.95rem;
            color: var(--dark);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
        }
        
        .skills-category h5 i {
            color: var(--accent-glow);
            font-size: 0.9rem;
        }
        
        .skills-category .skills {
            margin-top: 0;
        }
        
        /* Responsive for about cards */
        @media (max-width: 768px) {
            .about-cards-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .about-card {
                padding: 20px;
            }
            
            .section {
                padding: 50px 15px;
                width: 100%;
                max-width: 100%;
            }
        }
        
      
        
       /* Projects Section - Minimalist Update */
.projects-grid {
    display: grid;
    /* Force exactly 3 columns on desktop for consistent layout */
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    align-items: start;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(26, 37, 51, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Ensure consistent card height and image cropping */
.project-image {
    height: 275px;
    overflow: hidden;
}

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(26, 37, 51, 0.35);
}

.project-image {
    height: 260px; /* slightly taller to reduce extreme landscape look */
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures uniform cropping */
    transition: transform 0.45s ease;
}

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

.project-tags {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.project-tag {
    background: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Category Badge Styles */
.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    width: fit-content;
    z-index: 10;
}

.category-badge.deployed {
    background: #27ae60;
    color: white;
}

.category-badge.localhost {
    background: #e67e22;
    color: white;
}

.category-badge i {
    margin-right: 3px;
}

.project-info {
    padding: 18px;
}

.project-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.project-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.project-title-row h3 {
    margin-bottom: 0;
    flex: 1;
}

.mobile-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.mobile-nav-btn {
    background: var(--gradient);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.mobile-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.5);
}

.mobile-image-counter {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    min-width: 40px;
    text-align: center;
}

/* Hide mobile controls on desktop */
@media (min-width: 769px) {
    .mobile-nav-controls {
        display: none !important;
    }
}

.project-info p {
    font-size: 13px;
    color: #636e72;
    line-height: 1.5;
    margin-bottom: 12px;
}

.view-btn {
    display: inline-block;
    width: 100px;
    padding: 8px 20px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    text-align: center;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.project-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.project-action i {
    color: var(--primary);
    font-size: 18px;
}

/* Project Buttons Container */
.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

/* View Images Button for Project */
.project-view-btn {
    display: inline-block;
    width: 80px;
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.project-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Open Link Button for Project */
.project-link-btn {
    display: inline-block;
    width: 90px;
    padding: 10px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.project-link-btn:hover {
    background: var(--primary);
    color: white;
}

.project-info {
    display: flex;
    flex-direction: column;
}
        
        .project-links {
            display: flex;
            gap: 10px;
        }
        
        .project-links a {
            font-size: 12px;
            text-decoration: none;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 5px;
            transition: color 0.3s ease;
        }
        
        .project-links a:hover {
            color: var(--primary);
        }
        
        /* Contact Section */
        .contact {
            background: var(--gradient);
            color: white;
            border-radius: 20px;
            padding: 50px;
            text-align: center;
            position: relative;
            overflow: hidden;
            max-width: 100%;
        }
        
        @media (max-width: 768px) {
            .contact {
                padding: 30px 15px;
                width: 100%;
                border-radius: 15px;
            }
        }
        
        .contact::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }
        
        .contact::after {
            content: '';
            position: absolute;
            bottom: -80px;
            left: -80px;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }
        
        .contact h2 {
            font-size: 32px;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }
        
        .contact p {
            max-width: 600px;
            margin: 0 auto 30px;
            position: relative;
            z-index: 2;
            opacity: 0.9;
        }
        
        .contact .btn {
            background: white;
            color: var(--primary);
            position: relative;
            z-index: 2;
        }
        
        .contact .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
        }
        
        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 40px 5% 20px;
            width: 100%;
        }
        
        @media (max-width: 768px) {
            footer {
                padding: 30px 15px 20px;
            }
        }
        
        .footer-content {
            max-width: 600px;
            margin: 0 auto;
        }
        
        .footer-logo {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
            display: block;
            text-align: center;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .footer-links a {
            color: white;
            text-decoration: none;
            font-size: 13px;
            transition: color 0.3s ease;
        }
        
        .footer-links a:hover {
            color: var(--secondary);
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .social-links a {
            color: white;
            font-size: 18px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background: white;
            color: var(--primary);
            transform: translateY(-3px);
        }
        
        .copyright {
            font-size: 12px;
            opacity: 0.7;
            margin-top: 30px;
            text-align: center;
        }

        /* Lightbox Styles - Modal Style */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox-content {
            position: relative;
            background: white;
            border-radius: 15px;
            padding: 20px;
            max-width: 90%;
            max-height: 90vh;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        .lightbox-image-container {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .lightbox-image {
            max-width: 100%;
            max-height: 65vh;
            border-radius: 10px;
            object-fit: contain;
        }

        .lightbox-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-top: 15px;
            width: 100%;
        }

        .lightbox-nav {
            background: white;
            border: none;
            color: #333;
            font-size: 1.2rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .lightbox-nav:hover {
            background: #f0f0f0;
            transform: scale(1.1);
        }

        .lightbox-counter {
            text-align: center;
            color: #666;
            font-size: 0.95rem;
            font-weight: 500;
            min-width: 80px;
        }

        /* Responsive for Lightbox */
        @media (max-width: 768px) {
            .lightbox-content {
                max-width: 95%;
                padding: 10px;
            }
            
            .lightbox-nav {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
        }

        /* Image Count Badge */
        .image-count {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .fade-in {
            animation: fadeIn 1s ease forwards;
        }
        
        .delay-1 {
            animation-delay: 0.2s;
        }
        
        .delay-2 {
            animation-delay: 0.4s;
        }
        
        .delay-3 {
            animation-delay: 0.6s;
        }
        
        /* Mobile Responsiveness */
        @media (max-width: 1024px) {
            .hero-profile {
                width: 40%;
            }
            
            .hero-content {
                width: 60%;
            }
        }
        
        /* Global Mobile Fix */
        @media (max-width: 768px) {
            * {
                max-width: 100%;
            }
            
            body, html {
                overflow-x: hidden;
                max-width: 100vw;
            }
            
            .section {
                width: 100%;
                max-width: 100%;
                overflow-x: hidden;
            }
            
            .projects-grid {
                width: 100%;
                max-width: 100%;
            }
            
            .cert-slider {
                width: 100%;
                max-width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            header {
                padding: 15px 15px;
                width: 100%;
                max-width: 100%;
            }
            
            nav {
                position: fixed;
                top: 60px;
                right: -100%;
                width: 80%;
                max-width: 300px;
                background: white;
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
                border-radius: 10px 0 0 10px;
                padding: 20px;
                transition: right 0.3s ease;
            }
            
            nav.active {
                right: 0;
            }
            
            nav ul {
                flex-direction: column;
            }
            
            nav ul li {
                margin: 15px 0;
            }
            
            .hero {
                padding-top: 80px;
                text-align: center;
                flex-direction: column;
            }
            
            .hero-content {
                margin: 0 auto;
                text-align: center;
                width: 90%;
                max-width: 100%;
                padding: 0 15px;
            }
            
            .hero-content h1 {
                font-size: 1.8rem;
                line-height: 1.3;
            }
            
            .hero-content p {
                font-size: 14px;
                line-height: 1.6;
            }
            
            .hero-profile {
                position: relative;
                right: auto;
                width: 100%;
                max-width: 300px;
                height: 300px;
                margin: 40px auto 0;
                order: 1;
            }
            
            .hero-profile img {
                border-radius: 50%;
            }
            
            .btn-group {
                display: flex;
                flex-direction: column;
                gap: 15px;
                align-items: center;
            }
            
            .btn-outline {
                margin-left: 0;
            }
            
            .about-content {
                flex-direction: column;
                padding: 20px;
            }
            
            .about-cards-container {
                grid-template-columns: 1fr;
            }
            
            .contact {
                padding: 30px 20px;
            }
            
            .contact::before, .contact::after {
                display: none;
            }
        }


         /* Works Gallery Section */
.works-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #636e72;
    font-size: 1rem;
}

.scrollable-gallery {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 0;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.gallery-item {
    position: relative;
    width: 400px; /* Wider landscape format */
    height: 250px; /* Shorter height for landscape */
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(108, 92, 231, 0.9);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400px * 6 - 1.5rem * 6)); /* Move by 6 landscape items */
    }
}

/* Pause animation on hover */
.scrollable-gallery:hover .gallery-track {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .gallery-item {
        width: 350px;
        height: 220px;
    }
}

/* Projects grid responsive breakpoints: 2 columns for medium, 1 for small */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 300px;
        height: 200px;
    }
    
    .gallery-track {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 280px;
        height: 180px;
    }
    
    .gallery-caption {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
} 

/* Portrait ratio for mobile app videos */
.portrait-ratio {
    position: relative;
    padding-top: 125%; /* 2:3 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000; /* Black background for any letterboxing */
}

.portrait-ratio video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 98%; /* 95% zoom */
    height: 95%; /* 95% zoom */
    transform: translate(-50%, -50%) scale(0.95); /* Centers and scales to 95% */
    object-fit: contain; /* Ensures entire video is visible */
    border-radius: 8px 8px 0 0; /* Matches the card's rounded corners */
}

/* Adjust project card for portrait videos */
.project-card .portrait-ratio {
    height: auto;
}

/* Video controls styling */
.portrait-ratio video::-webkit-media-controls-panel {
    background: rgba(0,0,0,0.7);
    border-radius: 0 0 8px 8px;
}

/* Certifications Carousel */
.certification-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 60px;
}

.cert-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.cert-slide {
    min-width: 100%;
    padding: 20px 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Active/Centered Certificate Highlight */
.cert-slide-active .cert-card {
    transform: scale(1.03);
    box-shadow: 0 12px 50px rgba(4, 85, 190, 0.5) !important;
    border: 2px solid var(--primary);
}

.cert-slide-active .cert-image img {
    filter: brightness(1.05);
}

.cert-slide-active .cert-info h3 {
    font-size: 32px;
    text-shadow: 0 0 20px rgba(4, 85, 190, 0.5);
}

.cert-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(4, 85, 190, 0.35) !important;
}

.cert-image {
    flex: 1;
    min-width: 50%;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.cert-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.cert-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary);
}

.cert-info .cert-issuer {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.cert-info .cert-date {
    font-size: 16px;
    color: #636e72;
    margin-bottom: 25px;
}

.cert-info .btn {
    display: inline-block;
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
}

.cert-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.cert-nav-btn:hover {
    background: var(--accent-glow);
}

.cert-prev {
    left: 5px;
}

.cert-next {
    right: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .certification-carousel {
        padding: 0 50px;
    }
    
    .cert-card {
        flex-direction: column;
    }
    
    .cert-image img {
        min-height: 200px;
    }
    
    .cert-info {
        padding: 25px;
    }
    
    .cert-info h3 {
        font-size: 22px;
    }
    
    .cert-info .cert-issuer {
        font-size: 15px;
    }
    
    .cert-info .cert-date {
        font-size: 14px;
    }
    
    .cert-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Certifications Section */
.certification-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 37, 51, 0.12);
}

.certification-row-reverse {
    flex-direction: row-reverse;
}

.certification-image {
    flex: 0 0 45%;
    width: 45%;
}

.certification-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.certification-details {
    flex: 0 0 50%;
    width: 50%;
}

.certification-details h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary);
}

.certification-issuer {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.certification-date {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 15px;
}

.certification-description {
    color: #636e72;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Hover effects */
.project-card:hover .portrait-ratio video {
    transform: translate(-50%, -50%) scale(1); /* Slight zoom on hover */
    transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portrait-ratio {
        padding-top: 177.78%; /* 9:16 aspect ratio */
    }
    
    .portrait-ratio video {
        width: 98%; /* Slightly larger on mobile */
        height: 98%;
        transform: translate(-50%, -50%) scale(0.98);
    }
}

@media (max-width: 480px) {
    .portrait-ratio video {
        width: 100%; /* Full width on smallest screens */
        height: 100%;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Tools Section - Infinite Scroll Carousel */
.tools-carousel-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
    max-width: 100%;
}

@media (max-width: 768px) {
    .tools-carousel-container {
        padding: 15px 0;
    }
}

.tools-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollTools 60s linear infinite;
    cursor: grab;
}

.tools-track:active {
    cursor: grabbing;
}

.tools-track.paused {
    animation-play-state: paused;
}

@keyframes scrollTools {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

.tool-item {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2);
}

.tool-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.tool-item span {
    font-size: 11px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {
    .tool-item {
        width: 80px;
        height: 80px;
        padding: 10px;
    }
    
    .tool-item img {
        width: 40px;
        height: 40px;
    }
    
    .tool-item span {
        font-size: 10px;
    }
}


/* Form Styles */
    #contact-form {
        max-width: 500px;
        margin: 30px auto 0;
        text-align: left;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: white;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: inherit;
        font-size: 16px;
        transition: border-color 0.3s;
        box-sizing: border-box;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #4a6cf7;
    }
    
    #submit-btn {
        position: relative;
        width: 100%;
        padding: 12px 24px;
        cursor: pointer;
    }
    
    .loading-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    /* Toast Notification Styles */
    .toast {
        visibility: hidden;
        min-width: 250px;
        background-color: #333;
        color: #fff;
        text-align: center;
        border-radius: 4px;
        padding: 16px;
        position: fixed;
        z-index: 1000;
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.5s, visibility 0.5s;
    }
    
    .toast.show {
        visibility: visible;
        opacity: 1;
    }
    
    .toast.success {
        background-color: #4CAF50;
    }
    
    .toast.error {
        background-color: #f44336;
    }

       

/* Skill-specific icon colors */
/* Skill-specific icon colors */
.skill:nth-child(1) i { color: #f7df1e; } /* JavaScript */
.skill:nth-child(2) i { color: #3178c6; } /* TypeScript */
.skill:nth-child(3) i { color: #61dafb; } /* React */
.skill:nth-child(4) i { color: #339933; } /* Node.js */
.skill:nth-child(5) i { color: #000000; } /* Express */
.skill:nth-child(6) i { color: #47a248; } /* MongoDB */
.skill:nth-child(7) i { color: #336791; } /* PostgreSQL */
.skill:nth-child(8) i { color: #e10098; } /* GraphQL */
.skill:nth-child(9) i { color: #2496ed; } /* Docker */
.skill:nth-child(10) i { color: #ff9900; } /* AWS */
.skill:nth-child(11) i { color: #1572b6; } /* CSS3 */
.skill:nth-child(12) i { color: #cc6699; } /* SASS */
.skill:nth-child(13) i { color: #f05032; } /* Git */
.skill:nth-child(14) i { color: #181717; } /* GitHub */
.skill:nth-child(15) i { color: #f24e1e; } /* Figma */
.skill:nth-child(16) i { color: #777bb4; } /* PHP */
.skill:nth-child(17) i { color: #4479a1; } /* MySQL */
.skill:nth-child(18) i { color: #2c5cc5; } /* Ajax */
.project-info {
    text-align: justify;
    line-height: 1.6;
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
    font-family: Arial, sans-serif;
    color: #333;
}

.cert-btn{

            display: inline !important;
            width: 175px;
            padding: 12px 30px;
            background: var(--gradient);
            color: white;
            border-radius: 30px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);

}

/* View Button for Certificate */
.cert-view-btn {
    display: inline-block;
    width: 80px;
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.cert-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Open Link Button for Certificate */
.cert-link-btn {
    display: inline-block;
    width: 90px;
    padding: 10px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cert-link-btn:hover {
    background: var(--primary);
    color: white;
}

/* Certificate Buttons Container */
.cert-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

/* Redirect Confirmation Modal */
.redirect-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.redirect-modal.active {
    display: flex;
    opacity: 1;
}

.redirect-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.redirect-modal.active .redirect-modal-content {
    transform: scale(1);
}

.redirect-modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.redirect-modal-icon i {
    font-size: 28px;
    color: white;
}

.redirect-modal-content h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.redirect-modal-content p {
    color: #636e72;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.redirect-url {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    word-break: break-all;
    font-size: 0.85rem;
    color: #636e72;
    max-height: 60px;
    overflow-y: auto;
}

.redirect-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.redirect-cancel-btn {
    padding: 12px 24px;
    background: #f0f0f0;
    color: var(--dark);
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.redirect-cancel-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.redirect-confirm-btn {
    padding: 12px 24px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.redirect-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .redirect-modal-content {
        padding: 25px 20px;
    }
    
    .redirect-modal-actions {
        flex-direction: column;
    }
    
    .redirect-cancel-btn,
    .redirect-confirm-btn {
        width: 100%;
    }
}