/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-base: #09090b;
    --bg-surface: #121215;
    --bg-card: rgba(22, 22, 26, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #00E676; /* Radiant Neon Green */
    --primary-glow: rgba(0, 230, 118, 0.4);
    --primary-dark: #00c853;
    
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-white: #ffffff;
    
    /* Font Families - Modern tech & high-end typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Utility */
.highlight {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   BUTTONS (PREMIUM HOVER EFFECTS)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary);
    color: #000000;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.1);
}

.btn-card-link {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 0.6rem 1.6rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-card-link:hover {
    background-color: var(--primary);
    color: #000000;
    border-color: var(--primary);
    box-shadow: 0 4px 10px var(--primary-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.8rem 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 1.1rem 0;
    background-color: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo-highlight {
    background-color: var(--primary);
    color: #000000;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.4rem;
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    transition: var(--transition-smooth);
}

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

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -8px;
    left: 0;
}

.hamburger::after {
    top: 8px;
    left: 0;
}

/* Active Hamburger State */
.mobile-nav-toggle.open .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-subtitle-top {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 480px;
    overflow: visible;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.9));
    position: relative;
    z-index: 5;
    /* No CSS flip - PNG is already pre-flipped */
}

/* Floating background sharp circles */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.circle-green {
    width: 300px;
    height: 300px;
    background-color: var(--primary);
    top: 15%;
    right: 12%;
    animation: floatShape 8s ease-in-out infinite alternate;
}

.circle-white {
    width: 320px;
    height: 320px;
    background-color: var(--text-white);
    top: 38%;
    right: 3%;
    animation: floatShape 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatShape {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-25px) scale(1.03);
    }
}

/* ==========================================================================
   ABOUT PAGE & CONTENT
   ========================================================================== */
.page-header {
    padding: 12rem 0 4rem;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
}

.about-section {
    padding: 80px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-container {
    position: relative;
    width: 380px;
    height: 480px;
    overflow: visible;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.9));
    /* No CSS flip - PNG is already pre-flipped */
}

.neon-ring {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
    width: 330px;
    height: 160px;
    border: 6px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 25px var(--primary),
                inset 0 0 25px var(--primary);
    animation: pulseRing 3s infinite ease-in-out;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.about-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================================================
   SECTION HEADERS (SHARED)
   ========================================================================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Neon Ring Keyframe */
@keyframes pulseRing {
    0%, 100% {
        box-shadow: 0 0 20px var(--primary), inset 0 0 20px var(--primary);
        opacity: 0.8;
    }
    50% {
        box-shadow: 0 0 40px var(--primary), inset 0 0 40px var(--primary);
        opacity: 1;
    }
}

/* Contact Container */
.contact-container {
    max-width: 1100px;
}

/* Skills Grid */
.skills-section {
    padding: 60px 0 100px;
    background-color: var(--bg-surface);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.skill-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 600;
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-glow);
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Timeline Layout */
.timeline-section {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-base);
    border: 3px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-glow);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 2rem;
    background-color: var(--bg-surface);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.05);
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   SERVICES PAGE & CARDS
   ========================================================================== */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3.5rem 2.5rem;
    text-align: left;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 230, 118, 0.08);
}

.service-icon-container {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    background-color: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-container {
    background-color: var(--primary);
    color: #000000;
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 15px var(--primary-glow);
}

.service-icon {
    width: 30px;
    height: 30px;
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
}

.service-card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   CONTACT PAGE & GRID
   ========================================================================== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.info-item:hover .info-icon-wrapper {
    background-color: var(--primary);
    color: #000000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.info-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.4rem;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Form styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    background-color: var(--bg-surface);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.9rem 1.2rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.15);
}

.submit-btn {
    align-self: flex-start;
}

.form-status {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: none;
}

.form-status.success {
    display: block;
    color: var(--primary);
}

.form-status.error {
    display: block;
    color: #ff5252;
}

/* ==========================================================================
   FOOTER (EXPANDED MULTI-COLUMN DESIGN)
   ========================================================================== */
.footer {
    padding: 5rem 0 3rem;
    background-color: #050507;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
}

.footer-about-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.footer-contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-social-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.01);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: #000000;
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 0 15px var(--primary-glow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Tablet & Mobile Layouts */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 3rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        order: -1;
    }
    
    .circle-green {
        right: 15%;
        top: 5%;
        width: 250px;
        height: 250px;
    }
    
    .circle-white {
        right: 10%;
        top: 20%;
        width: 270px;
        height: 270px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .about-image-wrapper {
        order: -1;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::after {
        left: 31px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container::after {
        left: 23px;
    }
    
    .right {
        left: 0%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Small Screens Navigation & Mobile UI */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(9, 9, 11, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 1050;
        border-left: 1px solid var(--border-color);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.open {
        right: 0;
    }

    .hero-title {
        font-size: 3.8rem;
    }
    
    .hero-subtitle-top {
        font-size: 1.4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-image-container {
        width: 290px;
        height: 380px;
    }
    
    .circle-green {
        width: 190px;
        height: 190px;
    }
    
    .circle-white {
        width: 210px;
        height: 210px;
    }
    
    .about-image-container {
        width: 290px;
        height: 380px;
    }
    
    .neon-ring {
        width: 250px;
        height: 120px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}
