/* ==========================================================================
   DESIGN SYSTEM
   ========================================================================== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --border-glass: rgba(255, 255, 255, 0.08);
    --color-white: #ffffff;
    --color-accent: #22c55e;
    --color-gray-100: #f0f0f0;
    --color-gray-300: #bbbbbb;
    --color-gray-500: #777777;
    --color-gray-700: #444444;
    --font-main: 'Outfit', 'Inter', 'Montserrat', sans-serif;
    --font-heading: 'Times New Roman', Times, serif;
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-script: 'Pinyon Script', cursive;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    --transition-slow: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1200px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background-color: var(--bg-primary); color: var(--color-white); font-family: var(--font-main); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body { overflow-x: hidden; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--color-gray-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; background: none; border: none; color: inherit; outline: none; }
ul { list-style: none; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.section-title { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700; letter-spacing: 2px; color: var(--color-white); margin-bottom: 0.5rem; text-transform: uppercase; }
.section-subtitle { font-size: 1rem; font-weight: 300; color: var(--color-gray-500); letter-spacing: 2px; margin-bottom: 3rem; }
.asterisk-divider { font-size: 2rem; color: var(--color-gray-500); margin-bottom: 2rem; user-select: none; }
.text-center { text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px; font-size: 0.85rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; transition: var(--transition-fast); cursor: pointer; }
.btn-primary { background-color: var(--color-white); color: var(--bg-primary); border: 1px solid var(--color-white); }
.btn-primary:hover { color: var(--color-white); background-color: transparent; }

/* ==========================================================================
   TOP RIGHT NAVIGATION
   ========================================================================== */
.top-nav { position: fixed; top: 30px; right: 50px; display: flex; align-items: center; gap: 6px; z-index: 1000; }
.nav-link { font-family: var(--font-main); font-size: 0.78rem; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); padding: 10px 16px; border-radius: 25px; transition: var(--transition-fast); display: inline-block; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15); }

/* ==========================================================================
   HERO SECTION — Sample Design Match
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050505;
}

/* Right side image */
.hero-image-side {
    position: absolute;
    top: 0;
    right: -5%;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    max-width: none;
}

.hero-img-fade-left {
    position: absolute;
    top: 0; left: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(to right, #050505 0%, transparent 100%);
    z-index: 2;
}

.hero-img-fade-bottom {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to top, #050505 0%, transparent 100%);
    z-index: 2;
}

/* Left content */
.hero-content {
    position: relative;
    z-index: 10;
    width: 55%;
    max-width: 680px;
    padding: 0 0 0 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Top Quote */
.hero-top-quote {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    position: relative;
}

/* Greeting */
.hero-greeting {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}

/* Big Name */
.hero-name {
    font-family: var(--font-display);
    font-size: 4.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--color-white);
    margin-bottom: 12px;
}

.name-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.8);
}

.name-anim-wrapper {
    display: inline-flex;
    justify-content: flex-start;
    width: auto;
}

.heading-anim-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.glowing-line-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 1.1em;
    background: #fff;
    border-radius: 2px;
    z-index: 5;
    opacity: 1; 
    box-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

.glowing-line-center.start-anim {
    animation: lineCenterFade 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes lineCenterFade {
    0%, 15% { opacity: 1; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
    25%, 85% { opacity: 0; box-shadow: none; }
    95%, 100% { opacity: 1; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
}

.expand-heading-center {
    display: inline-flex;
    justify-content: center;
    vertical-align: bottom;
    white-space: pre;
    letter-spacing: -0.5em; 
    opacity: 0; 
    filter: blur(5px); 
    transform: scaleX(0.8);
}

.expand-heading-center.start-anim {
    animation: expandHeadingAnim 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes expandHeadingAnim {
    0%, 15% { letter-spacing: -0.5em; opacity: 0; filter: blur(5px); transform: scaleX(0.8); }
    30%, 85% { letter-spacing: normal; opacity: 1; filter: blur(0); transform: scaleX(1); }
    95%, 100% { letter-spacing: -0.5em; opacity: 0; filter: blur(5px); transform: scaleX(0.8); }
}

.expand-text {
    display: inline-block;
    vertical-align: bottom;
    white-space: nowrap;
    letter-spacing: -0.5em; 
    opacity: 0; 
    filter: blur(5px); 
    transform: scaleX(0.8);
}

.expand-text.start-anim {
    animation: expandName 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes expandName {
    0%, 15% { letter-spacing: -0.5em; opacity: 0; filter: blur(5px); transform: scaleX(0.8); }
    30%, 85% { letter-spacing: normal; opacity: 1; filter: blur(0); transform: scaleX(1); }
    95%, 100% { letter-spacing: -0.5em; opacity: 0; filter: blur(5px); transform: scaleX(0.8); }
}

/* Roles */
.hero-roles {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

/* Description */
.hero-desc {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
    max-width: 480px;
    text-align: justify;
}

.hero-desc strong {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--color-white);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
}

.cta-btn svg {
    opacity: 0.7;
}

.cta-btn:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.cta-btn-outline {
    border-color: rgba(255,255,255,0.15);
}

/* Connect label */
.hero-connect {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.connect-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.connect-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.connect-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

/* Social Icons */
.hero-socials {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-social-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition-fast);
    background: rgba(255,255,255,0.02);
    cursor: pointer;
}

.hero-social-icon svg {
    width: 20px;
    height: 20px;
}

.hero-social-icon:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

/* Available badge */
.hero-available {
    position: absolute;
    bottom: 100px;
    right: 50px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    width: fit-content;
    background: rgba(255,255,255,0.02);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.hero-available:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.95);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.1);
}

.available-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px var(--color-accent); }
    50% { box-shadow: 0 0 20px var(--color-accent), 0 0 40px rgba(34,197,94,0.3); }
}

/* Fade Up */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUpIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { 
    position: relative;
    width: 100%;
    min-height: 800px;
    padding: 120px 0; 
    background: url('my_about.png') no-repeat center center;
    background-size: cover;
    background-color: var(--bg-primary); 
    display: flex;
    align-items: center;
}


.about-content { 
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end; /* Push the wrapper to the right half of the screen */
}
.about-text-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keep text left-aligned inside the right block */
}

.about .section-title { margin-bottom: 1rem; text-align: left; }

.about-summary { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; line-height: 1.6; margin-bottom: 3rem; color: rgba(255,255,255,0.75); max-width: 550px; text-align: justify; text-align-last: left; }
.about-summary strong { font-weight: 600; color: #fff; }

.about-socials { display: flex; gap: 20px; justify-content: flex-start; }
.social-icon { width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--color-gray-700); display: flex; align-items: center; justify-content: center; color: var(--color-gray-300); transition: var(--transition-fast); cursor: pointer; }
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { color: var(--bg-primary); background-color: var(--color-white); border-color: var(--color-white); transform: translateY(-3px); }

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills { 
    position: relative;
    width: 100%;
    min-height: 900px;
    padding: 100px 0;
    background: url('new_skill_section.png') no-repeat center center;
    background-size: cover;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.skills .section-title { 
    position: relative;
    z-index: 10;
    margin-top: 0px; /* Moved lower */
    margin-bottom: 2rem;
}

.skills-wrapper { 
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 60px; /* Space between boxes */
    flex: 1;
}

.skills-card { 
    background-color: transparent; /* Made fully transparent */
    backdrop-filter: none;
    border: none;
    padding: 10px; 
    transition: var(--transition-smooth); 
    display: flex; 
    flex-direction: column; 
    align-items: center; /* Center content inside boxes too */
    text-align: center;
    min-width: 250px;
}
.skills-card h3 {
    text-align: center;
}
.skills-card:hover { transform: translateY(-5px); }

.skills-card h3 { 
    font-family: var(--font-heading); 
    font-size: 1.1rem; 
    font-weight: 500; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-bottom: 1.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 10px; 
    width: 100%; 
    color: var(--color-white);
}

.skills-list { width: max-content; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.skills-list li { display: flex; align-items: center; justify-content: flex-start; gap: 15px; font-size: 1rem; font-weight: 500; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.5); transition: var(--transition-fast); }
.skills-list li i { 
    font-size: 1.2rem; 
    transition: var(--transition-fast); 
    width: 30px; 
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.skills-list li:hover { color: var(--color-white); padding-left: 5px; }
.skills-list li:hover i { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { 
    padding: 120px 0; 
    background: url('new_service_section.png') no-repeat center center; 
    background-size: cover; 
    background-color: #000; 
}
.services-container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.services .section-subtitle { margin-bottom: 4rem; font-size: 1.1rem; color: var(--color-gray-300); font-weight: 300; letter-spacing: 2px; text-transform: uppercase; }

.services-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px 350px; /* Big gap for the central hand/gear image */
}
.service-card { 
    background-color: transparent; 
    backdrop-filter: none; 
    border: none; 
    border-radius: 12px;
    padding: 30px; 
    display: flex; 
    flex-direction: row; 
    gap: 20px;
    align-items: flex-start; 
    transition: var(--transition-smooth); 
}
.service-icon-box {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-white);
}
.service-content {
    display: flex;
    flex-direction: column;
}
.service-card:hover { transform: scale(1.05) translateX(10px); border-color: rgba(255,255,255,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.service-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; margin-bottom: 0.5rem; color: #fff; letter-spacing: 1.5px; }
.service-desc { font-size: 0.85rem; font-weight: 300; color: var(--color-gray-300); line-height: 1.6; margin-bottom: 1rem; }
.service-tech { font-size: 0.8rem; color: var(--color-gray-500); margin-top: auto; border-top: 1px solid var(--border-glass); padding-top: 10px; width: 100%; }
.service-tech strong { color: var(--color-white); font-weight: 500; }
.service-btn { align-self: flex-start; padding: 10px 24px; background: transparent; border: 1px solid var(--color-white); color: var(--color-white); border-radius: 30px; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition-fast); text-decoration: none; }
.service-btn:hover { background: var(--color-white); color: var(--bg-primary); }

.glowing-btn {
    position: relative;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 42, 42, 0.15); /* Solid box look with slight red glow */
    border: 2px solid #ff2a2a;
    border-radius: 8px; /* Box shape */
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px #ff2a2a, inset 0 0 10px #ff2a2a;
    animation: glow-pulse-red 2s infinite alternate;
}
.glowing-btn:hover {
    background: #ff2a2a;
    color: #fff;
    box-shadow: 0 0 30px #ff2a2a, inset 0 0 20px #ff2a2a;
    transform: scale(1.05);
}
@keyframes glow-pulse-red {
    0% { box-shadow: 0 0 10px #ff2a2a, inset 0 0 5px #ff2a2a; }
    100% { box-shadow: 0 0 25px #ff2a2a, inset 0 0 15px #ff2a2a; }
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */
.experience {
    padding: 100px 5%;
    background: url('experience_section.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}
.experience::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); /* Dark overlay to make text pop against the bright book */
    z-index: 1;
}
.experience .section-title,
.experience .timeline-container {
    position: relative;
    z-index: 2;
}
.timeline-container {
    max-width: 1000px;
    margin: 60px auto 0;
    position: relative;
}
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255,255,255,0.1);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 50%;
}
.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    z-index: 3;
}
.timeline-item.left .timeline-dot {
    right: -8px;
}
.timeline-item.right .timeline-dot {
    left: -8px;
}
.timeline-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.timeline-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.timeline-date {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.timeline-role {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}
.timeline-company {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-100);
    margin-bottom: 5px;
}
.timeline-location {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-bottom: 15px;
}
.timeline-desc {
    font-size: 0.9rem;
    color: var(--color-gray-300);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}
.timeline-tech span {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-gray-100);
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Mobile Responsiveness for Timeline */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding: 20px 0 20px 50px;
    }
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
        left: 12px;
    }
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects {
    padding: 100px 5%;
    background: url('project_section.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}
.projects::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}
.projects .section-title,
.projects .projects-split-grid {
    position: relative;
    z-index: 2;
}
.projects-split-grid {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 60px auto 0;
    gap: 20px;
}
.projects-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 35%;
}
.projects-center-gap {
    width: 30%;
}
.project-card {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}
.project-date {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
}
.project-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-100);
    margin-bottom: 10px;
    font-weight: 500;
}
.project-associated {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-bottom: 20px;
    font-style: italic;
}
.project-body p {
    font-size: 0.95rem;
    color: var(--color-gray-300);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}
.project-tech {
    margin-top: 20px;
    margin-bottom: 15px;
}
.project-tech span {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}
.project-tech span:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}
.project-media-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.media-link {
    font-size: 0.9rem;
    color: var(--color-gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.media-link i {
    color: var(--color-accent);
    font-size: 1.2rem;
}
.media-link:hover {
    color: var(--color-accent);
}
.media-link-more {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-top: 5px;
    cursor: pointer;
    text-decoration: underline;
}

/* Mobile Responsiveness for Projects Grid */
@media (max-width: 992px) {
    .projects-split-grid {
        flex-direction: column;
    }
    .projects-column {
        width: 100%;
    }
    .projects-center-gap {
        display: none;
    }
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(15px); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--bg-secondary); border: 1px solid var(--border-glass); max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(0.9); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); padding: 60px; }
.modal-overlay.open .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; font-weight: 200; color: var(--color-gray-500); transition: var(--transition-fast); cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-body h3 { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.3; }
.modal-body .modal-subtitle { font-size: 0.85rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--color-gray-500); margin-bottom: 2rem; display: block; }
.modal-body .modal-project-bullets { display: flex; flex-direction: column; gap: 20px; margin-bottom: 3rem; }
.modal-body .modal-project-bullets li { position: relative; padding-left: 30px; font-size: 1.05rem; font-weight: 300; color: var(--color-gray-300); line-height: 1.6; }
.modal-body .modal-project-bullets li::before { content: '*'; position: absolute; left: 5px; top: 0; font-size: 1.5rem; color: #fff; line-height: 1; }
.modal-body .modal-tech-stack { border-top: 1px solid var(--border-glass); padding-top: 2rem; }
.modal-body .modal-tech-stack h4 { font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.modal-body .modal-tech-list { display: flex; flex-wrap: wrap; gap: 12px; }
.modal-body .modal-tech-list span { font-size: 0.8rem; font-weight: 400; background: var(--bg-tertiary); border: 1px solid var(--border-glass); padding: 6px 15px; color: #fff; }

/* ==========================================================================
   ACHIEVEMENTS
   ========================================================================== */
.achievements { 
    padding: 120px 0; 
    background: url('achievement_section.png') no-repeat center center; 
    background-size: cover; 
    background-attachment: fixed;
    position: relative;
}
.achievements::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 8, 8, 0.1); /* Almost completely transparent overlay */
    z-index: 1;
}
.achievements-container, .section-title, .asterisk-divider, .section-subtitle, .certificates-gallery-wrapper {
    position: relative;
    z-index: 2;
}
.achievements-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.achievements-zigzag { display: flex; flex-direction: column; gap: 80px; margin-top: 60px; }
.achievements-zigzag .achievement-item {
    width: 45%;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    display: flex; 
    gap: 20px;
    align-items: flex-start;
}
.achievements-zigzag .left-align { align-self: flex-start; text-align: right; flex-direction: row-reverse; }
.achievements-zigzag .right-align { align-self: flex-end; }
.achievement-num { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 300; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.3); line-height: 1; margin-top: -10px; }
.achievement-info h4 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.8rem; letter-spacing: 1px; color: #fff; }
.achievement-info p { font-size: 0.95rem; font-weight: 300; color: var(--color-gray-300); line-height: 1.6; }
.achievement-info em { color: #fff; }

/* Certificates Gallery */
.certificates-gallery-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.certificates-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.certificates-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.certificates-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 4px;
}
.cert-card {
    flex: 0 0 350px;
    height: 250px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.cert-card:hover {
    transform: scale(1.05) translateX(10px);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    z-index: 10;
}
.cert-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s;
}
.cert-card:hover::after {
    opacity: 1;
}
.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cert-card:hover img {
    transform: scale(1.05);
}
.scroll-hint {
    text-align: right;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--color-gray-500);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.lightbox-close:hover {
    color: #fff;
}
.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-overlay.open .lightbox-img {
    transform: scale(1);
}
.lightbox-caption {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 1px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}
.lightbox-overlay.open .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   CONTACT (HUD Layout)
   ========================================================================== */
.contact { 
    padding: 120px 0 60px 0; 
    background: url('contact_section.png') no-repeat center center; 
    background-size: cover; 
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}
.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 8, 8, 0.4); /* Overlay to make text readable */
    z-index: 1;
}

.hud-contact-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 40px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}
.hud-contact-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
}
.hud-info-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hud-info-item:hover {
    transform: scale(1.05) translateX(10px);
}
.hud-info-item::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 30%;
    height: 1px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
}
.hud-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 1.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hud-text h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 0.5rem;
}
.hud-text a, .hud-text span {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-gray-300);
    transition: var(--transition-fast);
}
.hud-text a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.hud-social-section {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 80px;
    padding-bottom: 60px;
}
.hud-social-section h5 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 30px;
}
.hud-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.hud-hex-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: var(--transition-smooth);
}
.hud-hex-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.glow-text-form, .glow-text-form h3, .glow-text-form input, .glow-text-form textarea, .glow-text-form label, .glow-text-form span, .glow-text-form .form-status { 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255,255,255,0.4); 
}

.contact-form { display: flex; flex-direction: column; gap: 30px; }
.form-group { position: relative; width: 100%; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 0; font-size: 1rem; font-weight: 300; border: none; border-bottom: 1px solid var(--color-gray-700); transition: var(--transition-fast); background: transparent; color: #fff; outline: none; }
.form-group label { position: absolute; left: 0; top: 10px; font-size: 0.95rem; font-weight: 300; color: var(--color-gray-500); pointer-events: none; transition: var(--transition-fast); }
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label, .form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label { top: -20px; font-size: 0.75rem; letter-spacing: 1px; color: #fff; }
.input-line { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: #fff; transition: var(--transition-fast); }
.form-group input:focus ~ .input-line, .form-group textarea:focus ~ .input-line { width: 100%; }
.submit-btn { align-self: flex-start; gap: 15px; }
.submit-btn svg { transition: var(--transition-fast); }
.submit-btn:hover svg { transform: translateX(5px) scale(1.1); }
.form-status { font-size: 0.9rem; transition: var(--transition-fast); }
.form-status.success { color: #4cd964; }
.form-status.error { color: #ff3b30; }

.footer-bottom { border-top: 1px solid var(--border-glass); padding-top: 40px; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 300; color: var(--color-gray-500); letter-spacing: 1px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.footer-asterisk { font-size: 1.5rem; color: var(--color-gray-700); animation: spin 30s linear infinite; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }
.scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.45s; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 2000;
    width: 35px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    border: none;
}
.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: var(--transition-fast);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(13.5px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-13.5px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(15px);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.mobile-nav-link {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.mobile-nav.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-nav-link:hover {
    color: var(--color-white);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .top-nav { width: 100%; right: 0; left: 0; justify-content: center; flex-wrap: wrap; background: rgba(0,0,0,0.8); padding: 15px; backdrop-filter: blur(10px); }
    .hero { flex-direction: column; height: auto; min-height: auto; }
    .hero-image-side { position: relative; width: 100%; height: 50vh; }
    .hero-img-fade-left { display: none; }
    .hero-img-fade-bottom { height: 100px; }
    .hero-content { width: 100%; padding: 40px 40px 60px; max-width: none; }
    .hero-available { position: relative; bottom: auto; right: auto; margin-top: 20px; }
    .hero-name { font-size: 4.5rem; }
    .hero-top-quote { font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 15px; }
    .about { min-height: auto; background-position: center; }
    .about-content { padding: 40px; justify-content: center; }
    .about-text-wrapper { width: 100%; align-items: center; }
    .about .section-title { text-align: center; }
    .about-summary { text-align: center; text-align-last: center; }
    .about-socials { justify-content: center; }
    .skills { min-height: auto; padding: 60px 0; }
    .skills-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; gap: 40px; }
    .center-button-container { position: relative !important; top: 0 !important; left: 0 !important; transform: none !important; margin: 20px auto; order: -1; }
    .project-item { grid-template-columns: 1fr; gap: 40px; }
    .project-item:nth-child(even) { direction: ltr; }
    .project-image-box { max-width: 400px; margin: 0 auto; }
    .project-arch-frame { height: 400px; }
    .achievements-zigzag .achievement-item { width: 100%; flex-direction: column; text-align: left; align-items: flex-start; }
    .achievements-zigzag .left-align { align-self: center; flex-direction: column; }
    .achievements-zigzag .right-align { align-self: center; }
    .contact-form-layout { grid-template-columns: 1fr; gap: 60px; }
    .thank-you-title { font-size: 5rem; }
}

@media (max-width: 992px) {
    .projects-split-grid { flex-direction: column; }
    .projects-column { width: 100%; }
    .projects-center-gap { display: none; }
    .hud-contact-wrapper { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    .top-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-top-quote { font-size: 0.75rem; letter-spacing: 2px; margin-bottom: 12px; }
    .hero-content { padding: 30px 25px 50px; }
    .hero-name { font-size: 3.2rem; letter-spacing: -1px; }
    .name-outline { -webkit-text-stroke: 1.8px rgba(255,255,255,0.7); }
    .hero-greeting { font-size: 1.2rem; }
    .hero-roles { font-size: 0.65rem; letter-spacing: 3px; }
    .hero-stats { flex-wrap: wrap; gap: 15px; }
    .stat-item { padding: 0 18px; }
    .stat-num { font-size: 1.5rem; }
    .hero-cta { flex-direction: column; gap: 12px; }
    .cta-btn { width: 100%; justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .project-title { font-size: 1.5rem; }
    .section-title { font-size: 2rem; }
    .thank-you-title { font-size: 4rem; }
    .modal-content { padding: 40px 20px; }
    .modal-body h3 { font-size: 1.8rem; }
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot { left: 11px; }
}

@media (max-width: 480px) {
    .hero-top-quote { font-size: 0.65rem; letter-spacing: 1px; margin-bottom: 10px; }
    .hero-name { font-size: 2.5rem; }
    .name-outline { -webkit-text-stroke: 1.5px rgba(255,255,255,0.7); }
    .hero-greeting { font-size: 1rem; }
    .stat-item { padding: 0 12px; }
    .stat-num { font-size: 1.3rem; }
    .stat-label { font-size: 0.5rem; }
    .hero-social-icon { width: 36px; height: 36px; }
    .hero-social-icon svg { width: 16px; height: 16px; }
}
