* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header Navigation */
.navbar-custom {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s;
    background: transparent;
}

.navbar-custom.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 245, 255, 0.2);
}

.navbar-brand-custom {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f5ff, #ff00ff);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #00f5ff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #00f5ff;
    transition: all 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 0.3s;
    padding: 0 20px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00f5ff, #ff00ff, #00f5ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero h2 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #00f5ff;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #aaa;
    line-height: 1.8;
}

.btn-custom {
    padding: 12px 30px;
    margin: 10px 5px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    border: 2px solid #00f5ff;
    background: transparent;
    color: #00f5ff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-custom:hover {
    background: #00f5ff;
    color: #0a0a0a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
}

.btn-primary-custom {
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    border: none;
    color: #fff;
}

.btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 0, 255, 0.5);
}

/* Section Styling */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, #00f5ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #00f5ff;
    transition: all 0.3s;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.info-item:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateX(10px);
}

.info-item strong {
    color: #00f5ff;
    display: block;
    margin-bottom: 5px;
}

.info-item a:hover {
    color: #00f5ff !important;
}

/* Footer Links */
footer a {
    transition: all 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.3);
}

.skill-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: #00f5ff;
    margin-bottom: 15px;
}

.skill-card h4 {
    margin-bottom: 15px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.skill-card p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #aaa;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00f5ff, #ff00ff);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #00f5ff, #ff00ff);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    padding-left: 60px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(0, 245, 255, 0.3);
    transition: all 0.3s;
}

.timeline-content:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateX(10px);
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #00f5ff;
    border-radius: 50%;
    border: 4px solid #0a0a0a;
    z-index: 2;
}

.timeline-content h3 {
    color: #00f5ff;
    margin-bottom: 5px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.timeline-content .year {
    color: #ff00ff;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* Gallery Grid - FIXED FOR MOBILE */
.gallery-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
        }

.gallery-item {
            position: relative;
            height: 250px;
            border-radius: 15px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background: #1a1a1a;
        }


.gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }


.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #00f5ff;
}

/* Portfolio Cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.portfolio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 245, 255, 0.4);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: #fff;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.portfolio-info p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: #aaa;
}

.portfolio-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-sm-custom {
    padding: 8px 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    border: 1px solid #00f5ff;
    background: transparent;
    color: #00f5ff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-sm-custom:hover {
    background: #00f5ff;
    color: #0a0a0a;
}

/* CV Download Section */
.cv-download {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-radius: 20px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.cv-download::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00f5ff, #ff00ff, #00f5ff);
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    animation: glowBorder 3s ease infinite;
    opacity: 0.5;
}

@keyframes glowBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cv-download h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    background: rgba(0, 245, 255, 0.15);
    border-color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    color: #fff;
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: #000;
    padding: 50px 20px 20px;
    text-align: center;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.footer-content p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-links a {
    width: 50px;
    height: 50px;
    border: 2px solid #00f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f5ff;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: #00f5ff;
    color: #000;
    transform: translateY(-5px);
}

/* Modal */
.modal-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content-custom {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid #00f5ff;
    width: 100%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #00f5ff;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: #ff00ff;
}

/* Full Image Modal */
.img-modal {
    display: none;
    position: fixed;
    z-index: 5000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(4px);
    overflow: auto;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #ff0077;
}



/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes zoomIn {
    from {transform: scale(0.6);}
    to {transform: scale(1);}
}

/* Mobile Responsive Improvements */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s;
        border-left: 2px solid rgba(0, 245, 255, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        margin: 0 !important;
        width: 100%;
    }

    .timeline-dot {
        left: 11px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    section {
        padding: 60px 0;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet - Gallery height adjustment */

@media (max-width: 576px) {
    .hero {
        padding-top: 100px;
    }

    .btn-custom {
        padding: 10px 25px;
        margin: 8px 3px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-card {
        padding: 20px;
    }

    .modal-content-custom {
        padding: 20px;
    }

    .portfolio-buttons {
        flex-direction: column;
    }

    .btn-sm-custom {
        width: 100%;
    }
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ============================= */
 /* UI Designs Section */
        .ui-designs-section {
            padding: 0px 0;
            position: relative;
            padding-top: 96px;
        }

        .ui-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
            margin-top: 40px;
            padding: 30px;
        }

        .ui-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(0, 245, 255, 0.2);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.4s ease;
            cursor: pointer;
            position: relative;
        }

        .ui-card:hover {
            transform: translateY(-10px);
            border-color: rgba(0, 245, 255, 0.5);
            box-shadow: 0 20px 60px rgba(0, 245, 255, 0.2);
        }

        .ui-card-image {
            width: 100%;
            height: 500px;
            background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
            display: flex;
            align-items: flex-start;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .ui-card-image img {
            width: 100%;
            height: auto;
            object-fit: contain;
            object-position: top;
            transition: transform 0.4s ease;
        }

        .ui-card:hover .ui-card-image img {
            transform: translateY(-20px);
        }

        .ui-card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 245, 255, 0.1);
            opacity: 0;
            transition: opacity 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ui-card:hover .ui-card-overlay {
            opacity: 1;
        }

        .view-icon {
            width: 60px;
            height: 60px;
            background: rgba(0, 245, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #0a0a0a;
            font-size: 24px;
            transform: scale(0);
            transition: transform 0.3s ease;
        }

        .ui-card:hover .view-icon {
            transform: scale(1);
        }

        .ui-card-content {
            padding: 20px;
        }

        .ui-card-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #00f5ff;
            margin: 0;
        }

        .ui-card-description {
            display: none;
        }

        .ui-card-tags {
            display: none;
        }

        .ui-tag {
            display: none;
        }

        /* Modal Styles */
        .ui-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            align-items: center;
            justify-content: center;
        }

        .ui-modal-content {
            max-width: 90%;
            max-height: 90vh;
            position: relative;
        }

        .ui-modal-content img {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 10px;
            border: 2px solid rgba(0, 245, 255, 0.3);
        }

        .modal-close {
            position: absolute;
            top: -50px;
            right: 0;
            font-size: 40px;
            color: #00f5ff;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .modal-close:hover {
            transform: rotate(90deg);
        }

        /* Fade-in Animation */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .gallery-item {
                height: 350px;
            }
            .ui-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .section-title {
                font-size: 2rem;
                margin: 60px 0 30px;
            }

            .ui-card-image {
                height: 400px;
            }
        }