:root {
    --bg-dark: #050505;
    --bg-charcoal: #0e0e0e;
    --bg-glass: rgba(15, 15, 15, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ededed;
    --text-secondary: #a1a1a1;
    --accent: #ffffff;
    --ff-body: 'Inter', sans-serif;
    --ff-heading: 'Outfit', sans-serif;
    --max-width: 780px;
    --section-padding: 60px 20px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-primary);
    font-family: var(--ff-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--ff-heading);
    font-weight: 600;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-label {
    font-family: var(--ff-body);
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--text-primary);
    font-weight: 500;
}

/* Navbar */
.glass-navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 12px 24px;
    width: fit-content;
}

.nav-container {
    display: flex;
    gap: 32px;
}

.nav-container a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-transform: lowercase;
}

.nav-container a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
}

.hero-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    padding-top: 40px;
    position: relative;
}

.hero-container::before {
    content: '';
    position: absolute;
    right: 360px;
    /* Positioned between content and image */
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
    display: none;
    /* Hidden on mobile */
    left: 450px;
    /* Center-ish divider */
}

@media (min-width: 900px) {
    .hero-container::before {
        display: block;
    }
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.subheading {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

.description {
    max-width: 600px;
    margin-bottom: 40px;
}

.experience-title {
    font-size: 1rem;
    text-transform: lowercase;
    margin-bottom: 20px;
    color: var(--text-primary);
    opacity: 0.9;
}

.experience-item {
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
    margin-bottom: 24px;
}

.exp-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.exp-role {
    font-weight: 600;
    color: var(--text-primary);
}

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

.exp-date {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.exp-list {
    list-style: none;
}

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

.exp-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--border-color);
}

.hero-image {
    flex-shrink: 0;
}

.circular-profile {
    width: clamp(160px, 20vw, 240px);
    height: clamp(160px, 20vw, 240px);
    border-radius: 50%;
    background: var(--bg-charcoal);
    border: 1px solid var(--border-color);
    object-fit: cover;
    display: block;
}

/* Sections General */
section {
    padding: var(--section-padding);
    border-bottom: 1px solid var(--border-color);
}

h2 {
    font-size: 2rem;
    margin-bottom: 32px;
}

/* New Skills Grid (Icon Focus) */
.skills-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 24px 12px;
    justify-items: center;
}

.skill-item-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100px;
}

.skill-icon-box {
    width: 64px;
    height: 64px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-icon-box svg {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.skill-item-new span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.8;
    transition: color 0.3s;
}

.skill-item-new:hover .skill-icon-box {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.skill-item-new:hover .skill-icon-box svg {
    opacity: 1;
}

.skill-item-new:hover span {
    color: var(--text-primary);
    opacity: 1;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: lowercase;
    color: var(--text-primary);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-charcoal);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.project-item:hover img {
    transform: scale(1.02);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bg-charcoal), var(--bg-dark));
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    text-transform: lowercase;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: inherit;
    text-transform: lowercase;
    opacity: 0.8;
}

.project-tech-list span:not(:last-child)::after {
    content: " • ";
    margin-left: 8px;
    opacity: 0.5;
}

.project-actions {
    margin-top: 8px;
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-link:hover {
    gap: 8px;
    opacity: 0.8;
}

/* Terminal */
.terminal-window {
    background: var(--bg-charcoal);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-body {
    padding: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    min-height: 250px;
    max-height: 450px;
    overflow-y: auto;
    font-size: 0.82rem;
    color: #00ff41;
}

#terminal-hint {
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 16px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-line {
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-all;
}

.prompt {
    color: #4CAF50;
    /* Prompt color */
    margin-right: 8px;
}

.path {
    color: #2196F3;
    /* Directory color */
    margin-right: 8px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

#term-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    outline: none;
}

/* Blinking Cursor Simulation */
.terminal-input-line::after {
    content: "";
    width: 8px;
    height: 1.2em;
    background: var(--text-primary);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

#term-input:focus~.cursor {
    display: none;
}

/* Footer */
.footer {
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
}

.footer-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-icons {
    display: flex;
    gap: 24px;
}

.footer-icons a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-icons a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    letter-spacing: 0.02em;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.15s;
}

.stagger-3 {
    transition-delay: 0.2s;
}

.stagger-4 {
    transition-delay: 0.25s;
}

.stagger-5 {
    transition-delay: 0.3s;
}

.stagger-6 {
    transition-delay: 0.35s;
}

.stagger-7 {
    transition-delay: 0.4s;
}

.stagger-8 {
    transition-delay: 0.45s;
}

.stagger-9 {
    transition-delay: 0.5s;
}

.stagger-10 {
    transition-delay: 0.55s;
}

.stagger-11 {
    transition-delay: 0.6s;
}

.stagger-12 {
    transition-delay: 0.65s;
}

.stagger-13 {
    transition-delay: 0.7s;
}

.stagger-14 {
    transition-delay: 0.75s;
}

.stagger-15 {
    transition-delay: 0.8s;
}

.stagger-16 {
    transition-delay: 0.85s;
}

.stagger-17 {
    transition-delay: 0.9s;
}

.stagger-18 {
    transition-delay: 0.95s;
}

.stagger-19 {
    transition-delay: 1.0s;
}

.stagger-20 {
    transition-delay: 1.05s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px 20px;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: left;
        align-items: flex-start;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .nav-container {
        gap: 12px;
    }

    .glass-navbar {
        padding: 10px 16px;
        top: 16px;
    }

    .nav-container a {
        font-size: 0.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .circular-profile {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .section-label {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .skills-grid-new {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .terminal-body {
        font-size: 0.8rem;
        min-height: 250px;
    }
}