/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #9d4edd;
    --secondary-color: #2d1b4e;
    --accent-color: #ff006e;
    --dark-bg: #0a0e27;
    --dark-secondary: #1a1a2e;
    --dark-tertiary: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: linear-gradient(180deg, #1a0b2e 0%, #2d1b4e 50%, #1a0b2e 100%);
            background-attachment: fixed;
            color: #ffffff;
            overflow-x: hidden;
            min-height: 100vh;
        }
        
        /* Animated Background Gradient */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Glass Effect */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.nglass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    z-index: 1000;
    animation: slideDown 0.5s ease;
    
}

@keyframes slideDown {
    from { top: -100px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: black;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */


/* Services Section */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-icon {
    margin-bottom: 30px;
}

.service-icon img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.2);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-item {
    padding: 25px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.skill-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-header span {
    font-weight: 600;
    font-size: 1.1rem;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.05);
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
    position: relative;
}

.skill-percent {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    padding: 40px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.2);
}

.about-card h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.icon-large {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-card a:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.2);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.social-links {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

/* Footer */
.footer {
    padding: 0px 0;
    text-align: center;
    margin: 20px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .image-container {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }
}




/* Hero Section - FIXED FOR MOBILE */
.hero {
    min-height: 10vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text {
    width: 100%;
}

.hero-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    white-space: nowrap;
}

.active-tab {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.highlight:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Image */
.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

.profile-img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.floating-card {
    position: absolute;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: floatCard 3s ease-in-out infinite;
    white-space: nowrap;
}

.floating-card i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.card-1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -5%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 5%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* RESPONSIVE STYLES - COMPLETE OVERHAUL */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .floating-card {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
}

@media (max-width: 968px) {
    .navbar {
        width: 95%;
        padding: 15px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-tabs {
        justify-content: center;
        gap: 10px;
    }

    .tab {
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-buttons {
        justify-content: center;
    }

    .image-container {
        max-width: 350px;
        padding: 20px;
    }

    .profile-img {
        max-width: 250px;
    }

    .floating-card {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .floating-card i {
        font-size: 1rem;
    }

    .card-1 {
        top: 5%;
        left: 0%;
    }

    .card-2 {
        top: 50%;
        right: 0%;
    }

    .card-3 {
        bottom: 5%;
        left: 10%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .services-grid,
    .skills-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

.nav-container {

    z-index: 1000;
}

    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 90%;
        max-width: 400px;
        flex-direction: column;

        padding: 30px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.18); /* Slightly more visible border */
        transition: left 0.3s ease;
        gap: 20px;
        background: rgba(26, 11, 46, 0.95);
        /* Enhanced shadow for depth */
        box-shadow: 
            0 8px 32px 0 rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
        
        /* Ensure it's above other content */
        z-index: 999;
            }

    .nav-links.active {
        left: 5%;
        z-index: 1000;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero {
        padding: 90px 15px 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services,
    .skills,
    .about,
    .contact {
        padding: 60px 0;
    }

    .service-card,
    .about-card,
    .contact-form {
        padding: 30px 20px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .logo {
        font-size: 0.95rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .hero {
        padding: 80px 10px 30px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-tabs {
        gap: 8px;
    }

    .tab {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .btn i {
        font-size: 0.85rem;
    }

    .image-container {
        padding: 15px;
        max-width: 280px;
    }

    .profile-img {
        max-width: 200px;
    }

    .floating-card {
        padding: 6px 10px;
        font-size: 0.65rem;
    }

    .floating-card i {
        font-size: 0.9rem;
    }

.card-1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -5%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 5%;
    animation-delay: 2s;
}


    .section-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .about-card h2 {
        font-size: 1.3rem;
    }

    .skill-header span {
        font-size: 0.95rem;
    }

    .skill-header i {
        font-size: 1.5rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Fix for landscape mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px 40px;
    }

    .hero-content {
        gap: 30px;
    }

    .image-container {
        max-width: 250px;
    }

    .profile-img {
        max-width: 180px;
    }
}
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    color: var(--text-primary);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--glass-bg);
}

.btn-outline {
    color: var(--text-primary);
    padding: 10px 25px;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}
