/* Base & Variables */
:root {
    --bg-dark: #0a192f;
    --bg-light: #112240;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --accent-tint: rgba(100, 255, 218, 0.1);
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --nav-height: 80px;
    --trans-default: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
}

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

.highlight {
    color: var(--accent);
}

.section-heading {
    display: flex;
    align-items: center;
    font-size: clamp(26px, 5vw, 32px);
    margin-bottom: 40px;
    white-space: nowrap;
}

.section-heading .number {
    font-family: var(--font-mono);
    color: var(--accent);
    margin-right: 10px;
    font-weight: 400;
    font-size: clamp(20px, 3vw, 24px);
}

.section-heading::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background-color: #233554;
    margin-left: 20px;
    flex-grow: 1; /* Extend line */
    max-width: 300px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--trans-default);
}

nav.scrolled {
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    height: 70px;
}

.logo {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-number {
    color: var(--accent);
    margin-right: 5px;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--accent);
    margin: 5px;
    transition: var(--trans-default);
}

/* Main Content Wrapper */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 150px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--nav-height);
}

.hero-content {
    max-width: 600px;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

#hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

#hero-subtitle {
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.description {
    max-width: 540px;
    margin-bottom: 50px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 1.75rem;
    color: var(--accent);
    background-color: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--trans-default);
}

.cta-button:hover {
    background-color: var(--accent-tint);
}

/* Code Window Visual */
.code-window {
    background: #1d2b3a;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 450px;
    font-family: var(--font-mono);
    overflow: hidden;
    position: relative;
}

.window-header {
    background: #112240;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #233554;
}

.dots {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.title {
    font-size: 0.8rem;
    color: #8892b0;
}

.window-body {
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-height: 200px;
}

.code-line {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-secondary);
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}


/* General Section Styles */
.section {
    padding: 100px 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.sub-heading {
    margin: 30px 0 20px;
    font-size: 1.1rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
    list-style: none;
}

.skills-list li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.skills-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.profile-card-wrapper {
    display: flex;
    justify-content: center;
}

/* Experience Section */
.experience-container {
    max-width: 800px; /* Centered narrow container */
    margin: 0 auto;
}

.experience-card {
    background: #112240;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
    transition: var(--trans-default);
    border-left: 3px solid var(--accent);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.exp-header .company {
    color: var(--accent);
}

.exp-header .period {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.exp-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.exp-highlights {
    list-style: none;
    margin-bottom: 20px;
}

.exp-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.exp-highlights li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    padding: 5px 10px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 15px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.project-card {
    background-color: #112240;
    padding: 2rem 1.75rem;
    border-radius: 4px;
    transition: var(--trans-default);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.folder-icon {
    color: var(--accent);
}

.project-links {
    display: flex;
    gap: 10px;
    color: var(--text-primary);
}

.project-links a:hover {
    color: var(--accent);
}

.project-title {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section-overline {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 20px;
}

.section-heading-center {
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 20px;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.big-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    background-color: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    transition: var(--trans-default);
    margin-top: 50px;
}

.big-button:hover {
    background-color: var(--accent-tint);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--accent);
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1080px) {
    main {
        padding: 0 100px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 25px;
    }
    
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }
    
    .hero-visual {
        display: none;
    }

    .about-grid {
        display: block;
    }

    .about-visual {
        margin-top: 50px;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75vw;
        background-color: #112240;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}
