/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

/* Variables */
:root {
    --primary: #bb00ff;
    /* Neon Purple */
    --secondary: #00dbde;
    /* Neon Cyan */
    --accent: #fc00ff;
    /* Neon Pink */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 10, 10, 0.85);
    /* New variable for consistency */
    --grid-color: rgba(255, 255, 255, 0.03);
    /* New grid color var */
    --glow: 0 0 20px rgba(187, 0, 255, 0.5);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    
    --feature-bg: #111;
    --feature-inner-bg: #0f0f0f;
    --icon-box-bg: rgba(255, 255, 255, 0.03);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --hero-shadow: 0 0 20px rgba(187, 0, 255, 0.6);
    --hero-title-color: var(--text-main);
}

/* Light Theme Overrides */
body.light-theme {
    --bg-dark: #f0f4f8;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --bg-card: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --grid-color: rgba(0, 0, 0, 0.05);
    --primary: #8a00bc;
    /* Darker purple for contrast */
    --secondary: #008c8e;
    /* Darker teal for contrast */
    --accent: #c400c7;
    
    --feature-bg: #ffffff;
    --feature-inner-bg: #f9f9f9;
    --icon-box-bg: rgba(0, 0, 0, 0.03);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --hero-shadow: 0 4px 15px rgba(187, 0, 255, 0.2);
    --hero-title-color: #000000;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 4px;
}

/* Premium Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
    transition: background-color 0.5s ease;
}

/* Animated Orbs/Glows */
.background-animation::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(187, 0, 255, 0.15), transparent 70%);
    border-radius: 50%;
    animation: floatGlow 15s infinite alternate ease-in-out;
    filter: blur(80px);
}

.background-animation::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(0, 219, 222, 0.15), transparent 70%);
    border-radius: 50%;
    animation: floatGlow 20s infinite alternate-reverse ease-in-out;
    filter: blur(80px);
}

/* Moving Grid Overlay */
.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 100s linear infinite;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reduced Section Padding for Mobile First feel */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    /* Removed inline-block to ensure standard centering behavior */
}

.section-title span {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 219, 222, 0.5);
}

/* Beautiful Underline */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(187, 0, 255, 0.5);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(to right, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(187, 0, 255, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1100px;
    padding: 12px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links li a.nav-item {
    font-weight: 500;
    position: relative;
    padding: 8px 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    border-radius: 30px;
    background: transparent;
    transition: all 0.4s ease;
}

.nav-links li a.nav-item::after {
    display: none;
}

.nav-item i {
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-item .nav-text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.4s ease, opacity 0.3s ease, margin-left 0.4s ease;
}

.nav-item:hover {
    background: var(--hover-bg);
    box-shadow: 0 4px 15px rgba(0, 219, 222, 0.1);
}

.nav-item:hover i {
    color: var(--secondary);
    transform: scale(1.1);
}

.nav-item:hover .nav-text {
    max-width: 100px;
    opacity: 1;
    margin-left: 10px;
    color: var(--text-main);
}

.btn-nav {
    padding: 8px 18px !important;
    background: rgba(187, 0, 255, 0.2);
    border: 1px solid var(--primary);
    border-radius: 50px;
}

/* Remove hover underline for contact button */
.nav-links li a.btn-nav::after {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 20px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-direction: column-reverse;
}

@media (min-width: 900px) {
    .hero-wrapper {
        flex-direction: row;
        text-align: left;
    }

    .hero-text-col {
        text-align: left;
    }

    .hero-image-col {
        justify-content: flex-end;
    }

    .cta-group {
        justify-content: flex-start;
        align-items: flex-start;
    }
}

.hero-text-col {
    flex: 1;
    text-align: center;
}

.greeting {
    font-size: 1.8rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: var(--hero-shadow);
    color: var(--hero-title-color);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.hero-text {
    max-width: 500px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    font-size: 1rem;
}

@media (min-width: 900px) {
    .hero-text {
        margin: 0 0 40px 0;
    }
}

.hero-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    /* Circular Image */
    object-fit: cover;
    box-shadow: 0 0 50px rgba(0, 219, 222, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (min-width: 900px) {
    .hero-img {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .hero-img {
        width: 300px;
        height: 300px;
    }
}

.hero-img:hover {
    box-shadow: 0 0 60px rgba(187, 0, 255, 0.6);
}

.hero-img-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-img-wrapper {
        width: 300px;
        height: 300px;
    }
}

.glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: rotateRing 10s linear infinite;
}

.ring-1 {
    width: 110%;
    height: 110%;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--secondary);
    filter: blur(2px);
    opacity: 0.5;
}

.ring-2 {
    width: 120%;
    height: 120%;
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--primary);
    animation-direction: reverse;
    animation-duration: 15s;
    filter: blur(1px);
    opacity: 0.3;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-main);
    z-index: 2;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: floatIcon 4s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
    color: #E34F26;
}

.icon-2 {
    bottom: 20%;
    left: -10%;
    animation-delay: 1s;
    color: #1572B6;
}

.icon-3 {
    bottom: 10%;
    right: 5%;
    animation-delay: 2s;
    color: #F7DF1E;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 25px;
    /* More space between buttons */
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .cta-group {
        justify-content: center;
        flex-direction: column;
        /* Stack on mobile for better width control */
        gap: 15px;
        width: 100%;
    }
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 0;
    /* Vertical padding only, width handles horizontal */
    width: 180px;
    /* Fixed width for uniformity */
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 900px) {
    .btn {
        width: 80%;
        /* Wider on mobile */
        max-width: 300px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 4px 15px rgba(187, 0, 255, 0.4);
    color: white;
    border: none;
    /* Ensure no border */
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(187, 0, 255, 0.6);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    /* Slight background for readability */
    border: 2px solid var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 219, 222, 0.1);
}

.btn-outline:hover {
    background: var(--secondary);
    color: #000;
    /* Distinct dark text on hover */
    box-shadow: 0 0 25px rgba(0, 219, 222, 0.5);
    transform: translateY(-3px);
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 30px;
}

@media (min-width: 900px) {
    .about-content {
        flex-direction: row;
        padding: 50px;
        gap: 50px;
    }
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(187, 0, 255, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .about-image img {
        width: 250px;
        height: 250px;
    }
}

.about-text {
    flex: 1.5;
    text-align: center;
}

@media (min-width: 900px) {
    .about-text {
        text-align: left;
    }
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-stats {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.skill-card {
    text-align: center;
    padding: 30px 15px;
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.skill-card h3 {
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 219, 222, 0.5);
}

/* Why Choose Me Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 card */
    gap: 30px;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Medium: 2 cards */
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Laptop: 4 cards */
    }
}

/* Feature Cards with Glowing Border Animation */
.feature-card {
    position: relative;
    padding: 30px;
    text-align: center;
    background: var(--feature-bg);
    /* Dark background */
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    /* Establish stacking context */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.intro-name {
    font-size: 4rem;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: cinematicIn 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards, gradientMove 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(187, 0, 255, 0.4));
    margin-bottom: 10px;
}

.typing-container {
    display: inline-block;
}

.intro-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--secondary);
    width: 0;
    animation: typing 2s steps(30, end) 1s forwards, blink 0.75s step-end infinite;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 auto;
}

.intro-loader {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.5s forwards;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(-100%);
    animation: loading 2.5s ease-in-out forwards;
}

@keyframes cinematicIn {
    0% {
        opacity: 0;
        transform: scale(1.2);
        filter: blur(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@media (max-width: 768px) {
    .intro-name {
        font-size: 2.5rem;
    }

    .intro-title {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

/* Rotating Gradient Border */
.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 90deg,
            var(--primary) 130deg,
            var(--secondary) 180deg,
            var(--accent) 240deg,
            transparent 270deg,
            transparent 360deg);
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

/* Inner Dark Background to create the "Border" look */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Border thickness */
    background: var(--feature-inner-bg);
    /* Match card bg */
    border-radius: 18px;
    z-index: -1;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Soft shadow lift */
}

/* Speed up animation and brighten on hover */
.feature-card:hover::before {
    animation-duration: 2s;
    filter: brightness(1.5);
}

/* Icon Box Styling */
.icon-box {
    width: 60px;
    height: 60px;
    background: var(--icon-box-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.feature-card:hover .icon-box {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--primary);
    border-color: transparent;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.feature-card:hover .icon-box i {
    color: white;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px 0 0 0;
    /* Reduced padding since image is separate */
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.tech-stack {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tech-stack span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--icon-box-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--secondary);
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-project {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-project i {
    font-size: 1rem;
}

/* Demo Button Styling (Secondary Neon) */
.btn-demo {
    background: rgba(0, 219, 222, 0.1);
    border-color: rgba(0, 219, 222, 0.3);
    color: var(--secondary);
}

.btn-demo:hover {
    background: var(--secondary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 219, 222, 0.6);
    transform: translateY(-3px) scale(1.05);
}

/* Code Button Styling (Primary Neon) */
.btn-code {
    background: rgba(187, 0, 255, 0.1);
    border-color: rgba(187, 0, 255, 0.3);
    color: var(--primary);
}

.btn-code:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(187, 0, 255, 0.6);
    transform: translateY(-3px) scale(1.05);
}

.btn-project:active {
    transform: translateY(-1px) scale(0.98);
}

/* FAQ Section */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin-bottom: 10px;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 219, 222, 0.1);
}

.faq-question {
    font-size: 1.1rem;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-question i {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1.2rem;
    color: var(--text-muted);
}

.faq-item.active .faq-question i {
    transform: rotate(135deg);
    color: var(--secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item.active .faq-answer {
    margin-top: 15px;
    opacity: 1;
    transform: translateY(0);
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-bottom: 15px;
    line-height: 1.7;
}

/* Contact Section */
.contact-wrapper {
    max-width: 1050px;
    margin: 0 auto;
    padding: 40px 50px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, var(--bg-card), transparent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
        /* Info : Form */
        gap: 50px;
    }
}

/* Contact Info Column */
.contact-info-col h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--white), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-box-small {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    /* Circle */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 219, 222, 0.2);
    transition: var(--transition);
}

.contact-item:hover .icon-box-small {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(187, 0, 255, 0.5);
    transform: scale(1.1);
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-text a,
.detail-text p {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.detail-text a:hover {
    color: var(--secondary);
}

/* Social Links */
.social-links-area span {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--secondary);
    color: black;
    box-shadow: 0 0 15px rgba(0, 219, 222, 0.6);
    transform: translateY(-3px);
}


/* Form Column */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .btn {
    align-self: center;
    width: 200px;
    /* Slightly wider for the contact form */
}

/* Removed media query to keep single column layout on all screens */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--icon-box-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-group textarea {
    resize: none;
    height: 150px;
    font-family: inherit;
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 17px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    font-size: 0.95rem;
    background: transparent;
}

.input-group input:focus,
.input-group input:valid,
.input-group textarea:focus,
.input-group textarea:valid {
    border-color: var(--secondary);
    background: var(--hover-bg);
    box-shadow: 0 0 20px rgba(0, 219, 222, 0.15);
}

.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background: var(--bg-dark);
    /* Ensure label bg matches site bg to obscure border */
    padding: 0 8px;
    color: var(--secondary);
    font-weight: 600;
    border-radius: 4px;
}

.social-links {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.social-links h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.social-icon:hover {
    background: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-3px);
    color: white;
}

/* Footer */
footer {
    background: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-logo h2 span {
    color: var(--primary);
}

.footer-logo p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
}

.social-btn-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid transparent;
}

.social-btn-sm:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 10px var(--secondary);
}

.footer-bottom {
    position: relative;
    text-align: center;
    padding: 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.scroll-top {
    position: absolute;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    transition: var(--transition);
}

.scroll-top:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .scroll-top {
        position: static;
        margin-top: 5px;
    }
}



@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo p {
        margin: 0 auto;
    }

    .social-icons-footer {
        justify-content: center;
    }
}

/* Animations & Effects */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.glitch {
    position: relative;
    color: white;
}

.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 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.footer-copyright {
    text-align: center;
}

@keyframes glitch-anim {
    0% {
        clip: rect(38px, 9999px, 81px, 0);
    }

    20% {
        clip: rect(78px, 9999px, 86px, 0);
    }

    40% {
        clip: rect(2px, 9999px, 5px, 0);
    }

    60% {
        clip: rect(24px, 9999px, 82px, 0);
    }

    80% {
        clip: rect(4px, 9999px, 13px, 0);
    }

    100% {
        clip: rect(54px, 9999px, 35px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(6px, 9999px, 63px, 0);
    }

    20% {
        clip: rect(53px, 9999px, 1px, 0);
    }

    40% {
        clip: rect(80px, 9999px, 60px, 0);
    }

    60% {
        clip: rect(21px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(77px, 9999px, 85px, 0);
    }

    100% {
        clip: rect(32px, 9999px, 24px, 0);
    }
}

/* Media Queries for Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    html,
    body {
        overflow-x: hidden;
    }
}

/* ==========================================================================
   VIP Premium Additions (Services, Category Skills, Process, Modal)
   ========================================================================== */

/* Trust Strip Style (Below Hero) */
.trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-top: 50px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.trust-item:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 219, 222, 0.4);
}

/* Services Grid styling */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(187, 0, 255, 0.1), rgba(0, 219, 222, 0.1));
    border: 1px solid var(--glass-border);
    color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 219, 222, 0.1);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 20px rgba(187, 0, 255, 0.4);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Skills Categories Grid (No arbitrary percentage bars) */
.skills-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skills-category-card {
    text-align: left;
    padding: 30px;
}

.skills-category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.skills-category-card h3 i {
    color: var(--secondary);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.skill-badge i {
    font-size: 1.1rem;
}

.skill-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 219, 222, 0.2);
}

/* How I Work timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-item {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.process-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.process-content {
    flex: 1;
    padding: 25px;
    border-radius: 18px;
}

.process-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tags on Projects Section */
.project-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: rgba(4, 4, 6, 0.95);
    border: 1px solid var(--secondary);
    box-shadow: 0 0 10px rgba(0, 219, 222, 0.3);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 30px;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Project case study button & modals styling */
.btn-case-study {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    color: var(--text-muted);
}

.btn-case-study:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
}

/* Case Study Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    width: 100%;
    max-width: 780px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    border-radius: 24px;
    animation: modalSlide 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes modalSlide {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 0;
    transition: var(--transition);
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    color: var(--text-main);
}

.modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.modal-body h2 span {
    color: var(--secondary);
}

.modal-grid-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .modal-grid-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

.modal-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Contact validation message styling */
.contact-status-msg {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    display: none;
    text-align: center;
}

.contact-status-msg.success {
    background: rgba(0, 219, 222, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    display: block;
}

.contact-status-msg.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
    display: block;
}