@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800;900&family=Space+Grotesk:wght@300;500;700&display=swap');

:root {
    --bg-dark: #020205;
    --bg-card: rgba(255, 255, 255, 0.02);
    --primary: #6366f1;
    /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-blur: blur(20px);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    --surface-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--bg-dark), var(--primary), var(--bg-dark));
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Background Effects */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(100px);
}

.blob-1 {
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation: floating 25s infinite alternate;
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation: floating 30s infinite alternate-reverse;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -70px) scale(1.1);
    }

    66% {
        transform: translate(-40px, 40px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}


/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}

.logo span {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.8rem;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 0.6rem 2.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.hire-btn {
    background: var(--gradient-1);
    color: #fff;
    padding: 6px;
    padding-right: 2.5rem;
    border-radius: 100px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 55px;
}

.hire-btn-orb {
    width: 43px;
    height: 43px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        inset 0 -2px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.4s;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hire-btn-orb img {
    height: 24px;
    width: 24px;
    object-fit: contain;
    transition: 0.4s;
    filter: brightness(1.1);
}

.hire-btn-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.hire-title {
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.hire-subtitle {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
}

.hire-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
}

.hire-btn:hover .hire-btn-orb {
    animation: spin-orb 0.6s ease-in-out;
    background: rgba(255, 255, 255, 0.25);
}

.hire-btn:hover .hire-btn-orb img {
    filter: brightness(1.5) drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
    opacity: 1;
}

@keyframes spin-orb {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

/* Reworked Hero Text Reveal */
.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 950;
    line-height: 1;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: reveal-text 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes reveal-text {
    0% {
        transform: translateY(30px);
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

#dynamic-text::after {
    content: '|';
    margin-left: 5px;
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

.hero-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    box-shadow:
        inset 0 -6px 12px rgba(0, 0, 0, 0.4),
        inset 0 6px 12px rgba(255, 255, 255, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        inset 0 -3px 6px rgba(0, 0, 0, 0.2),
        inset 0 6px 15px rgba(255, 255, 255, 0.4),
        0 20px 40px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.4s;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        inset 0 -6px 12px rgba(0, 0, 0, 0.2),
        inset 0 6px 12px rgba(255, 255, 255, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow:
        inset 0 -3px 6px rgba(0, 0, 0, 0.1),
        inset 0 6px 15px rgba(255, 255, 255, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.btn-title {
    font-size: 1rem;
    font-weight: 900;
}

.btn-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.7;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-divider {
    width: 2px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 5px;
}

.btn-icon-side {
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
}

.hero-image {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    width: 350px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover {
    transform: translateY(-10px) rotate(2deg);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.5), transparent, rgba(0, 210, 255, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary), transparent, var(--accent-purple), transparent);
    animation: rotate-glow 6s linear infinite;
    transform: translate(-50%, -50%);
    z-index: -1;
}

@keyframes rotate-glow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



.profile-img-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    background: #111;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: #333;
}

.profile-card-content {
    text-align: center;
}

.profile-card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-card-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Skills Section */
.section-container {
    padding: 5rem 10%;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card ul {
    list-style: none;
}

.skill-card ul li {
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.skill-card ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(88, 101, 242, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Projects Section Styling (Home Page) */
.projects-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-thumb img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.8rem;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 20px rgba(99, 102, 241, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.project-btn:hover::before {
    left: 100%;
}

.project-btn:hover {
    transform: translateY(-4px) scale(1.08);
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary) 100%);
    box-shadow:
        0 14px 35px rgba(168, 85, 247, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

/* Compact Tech Hexagons */
.tech-showcase {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 10%;
}

.tech-hex-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.tech-hex-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hex-badge-small {
    width: 90px;
    height: 80px;
    position: relative;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
    transition: 0.4s;
    cursor: pointer;
}

.hex-shape-small {
    width: 100%;
    height: 100%;
    background: var(--brand-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hex-shape-small::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
    pointer-events: none;
}

.hex-inner-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--brand-color);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hex-inner-logo img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.tech-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 0.5rem;
}

.tech-hex-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.tech-hex-card:hover .hex-badge-small {
    filter: drop-shadow(0 12px 30px rgba(99, 102, 241, 0.5));
}

.tech-hex-card:hover .tech-label {
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* Glass Focus Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 24px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: 0.4s;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.skill-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card ul li {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card ul li::before {
    content: '→';
    color: var(--primary);
    font-weight: 900;
}

/* Redefined About Container */
.about-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 32px;
    max-width: 900px;
    margin: 0 auto 5rem;
    position: relative;
}

.about-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.cta-section {
    padding: 10rem 10%;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto 4rem;
    border-radius: 10px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    min-height: 40px;
    display: none;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

.form-message.warning {
    background: rgba(251, 146, 60, 0.2);
    color: #fdba74;
    border: 1px solid rgba(251, 146, 60, 0.3);
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 350px;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.2);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #fff;
}

.contact-card p {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* Footer Modernization */
footer {
    padding: 6rem 10% 4rem;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.05), transparent);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-dim);
    line-height: 1.8;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: #fff;
}

/* Projects Page Styles */
.projects-header {
    padding-top: 10rem;
    text-align: left;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        inset 0 -3px 6px rgba(0, 0, 0, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: var(--gradient-1);
    border: none;
    color: #fff;
    box-shadow:
        inset 0 -4px 8px rgba(0, 0, 0, 0.4),
        inset 0 4px 8px rgba(255, 255, 255, 0.3),
        0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Partners Section */
.partners-section {
    text-align: center;
    padding: 5rem 10%;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    align-items: center;
    opacity: 0.7;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    filter: grayscale(1);
    transition: 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0);
}

/* Scaled 3D Ribbon Stats */
/* Global Infographic Stats (Image Reference Design) */
.infographic-stats {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 10%;
}

.stat-step-row {
    display: flex;
    align-items: center;
    position: relative;
    transition: 0.5s;
}

.step-glossy-orb {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    box-shadow:
        inset 0 8px 20px rgba(255, 255, 255, 0.4),
        inset 0 -8px 20px rgba(0, 0, 0, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.step-glossy-orb::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 15%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(4px);
}

.step-text-top {
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.step-number-big {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.step-content-banner {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 2rem 3rem 2rem 5rem;
    border-radius: 0 100px 100px 0;
    margin-left: -50px;
    flex: 1;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

.step-content-banner::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid var(--primary);
    margin-left: 30px;
}

.step-tag {
    display: block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.step-content-banner h4 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.step-content-banner p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.stat-step-row:hover {
    transform: translateX(15px);
}

.stat-step-row:hover .step-glossy-orb {
    transform: scale(1.1) rotate(5deg);
}

/* Partner Logo Marquee */
/* Partner Infographic Layout */
.partners-marquee-container {
    padding: 8rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.infographic-banner-wrapper {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    position: relative;
}

.banner-main-orb {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow:
        inset 0 10px 25px rgba(255, 255, 255, 0.4),
        inset 0 -10px 25px rgba(0, 0, 0, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.4);
    border: 5px solid rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
}

.banner-main-orb::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 35%;
    height: 15%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(5px);
}

.orb-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.orb-stat {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.banner-scroller-body {
    background: linear-gradient(90deg, var(--glass-bg), rgba(99, 102, 241, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    height: 120px;
    border-radius: 0 100px 100px 0;
    margin-left: -60px;
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 80px;
    padding-right: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.banner-scroller-body::before {
    content: 'PARTNERS';
    position: absolute;
    top: 15px;
    left: 80px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--primary);
    opacity: 0.6;
}

.banner-floating-sphere {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-purple), #ff0080);
    border-radius: 50%;
    bottom: -20px;
    left: 100px;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        inset 0 5px 15px rgba(255, 255, 255, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
    animation: float-sphere 3s ease-in-out infinite;
}

.banner-floating-sphere i {
    color: #fff;
    font-size: 1.2rem;
}

@keyframes float-sphere {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.partner-marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee-scroll 40s linear infinite;
}

.partner-item {
    flex-shrink: 0;
    width: 140px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(1) brightness(2);
    opacity: 0.6;
    transition: 0.4s;
}

.partner-item:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--primary);
    border: 4px solid var(--bg-dark);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary);
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.left::after {
    right: -8px;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 30px;
    background: rgba(20, 20, 25, 0.5);
    position: relative;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.timeline-date {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.timeline-location {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    font-style: italic;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}


/* =========================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATION
   ========================================= */

/* Mobile Navigation Elements */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    z-index: 2000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.mobile-menu-btn:active {
    transform: scale(0.9);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 2, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transform: translateY(-100%);
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-size: 2.5rem;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
    letter-spacing: -1px;
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #fff;
    transform: scale(1.1);
    letter-spacing: 0px;
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
    width: 50%;
}

/* Tablet & Mobile Styles */
@media (max-width: 1024px) {
    nav {
        padding: 1.5rem 5%;
    }

    .nav-links,
    .hire-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero Adjustments */
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 140px;
        padding-bottom: 50px;
        height: auto;
        gap: 3rem;
    }

    .hero-content {
        width: 100%;
        margin: 0;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-card {
        width: 300px;
        margin: 0 auto;
    }

    /* Section Global */
    .section-container {
        padding: 4rem 5%;
    }
}

@media (max-width: 768px) {

    /* Timeline - Single Column Left */
    .timeline {
        margin: 2rem auto;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left {
        text-align: left;
    }

    .timeline-item::after {
        left: 23px;
        right: auto;
    }

    .left::after,
    .right::after {
        left: 23px;
        right: auto;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Tech Hex Grid */
    .tech-hex-row {
        gap: 1rem;
    }

    .hex-badge-small {
        width: 70px;
        height: 60px;
    }

    .hex-inner-logo {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    /* Projects Page Mobile */
    .projects-header {
        padding-top: 8rem;
        text-align: center;
    }

    .projects-header h1 {
        font-size: 2.5rem !important;
    }

    .filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    /* Nexa Showcase */
    .nexa-content {
        flex-direction: column;
        padding: 2rem !important;
        text-align: center;
        gap: 2rem !important;
    }

    .nexa-content img {
        height: 80px !important;
    }

    .nexa-text p {
        margin: 0 auto 1.5rem;
    }

    /* Stats & Partners Mobile */
    .infographic-stats {
        padding: 0 5%;
        margin: 2rem auto;
    }

    .stat-step-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .step-content-banner {
        margin-left: 0;
        border-radius: 20px;
        padding: 2rem;
        width: 100%;
    }

    .step-content-banner::after {
        display: none;
        /* Hide the arrow on mobile */
    }

    .infographic-banner-wrapper {
        flex-direction: column;
        width: 100%;
        padding: 0 5%;
    }

    .banner-main-orb {
        margin-bottom: -30px;
        z-index: 20;
        transform: scale(0.8);
    }

    .banner-scroller-body {
        margin-left: 0;
        width: 100%;
        border-radius: 20px;
        padding: 40px 20px 20px;
        height: auto;
        min-height: 120px;
        flex-wrap: width;
    }

    .banner-scroller-body::before {
        display: none;
    }

    .banner-floating-sphere {
        display: none;
    }

    /* Contact & Footer */
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links ul li a:hover {
        padding-left: 0;
        color: var(--primary);
    }

    .social-links {
        justify-content: center !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .project-card {
        margin: 0 1rem;
    }

    .about-box {
        padding: 1.5rem;
    }
}