/* =========================================
   ASWATHY V R – QUANTITY SURVEYOR PORTFOLIO
   Theme: Precision Architecture & Surveying
   Fonts: Syne (Headings), DM Sans (Body)
   Colors: Deep Slate, Architectural Emerald, Crisp White
   ========================================= */

:root {
    /* Colors */
    --bg-dark: #0f172a;
    /* Deep Slate */
    --bg-surface: #1e293b;
    /* Lighter Slate */
    --bg-light: #ffffff;
    /* Crisp White */
    --bg-alt: #f8fafc;
    /* Blueprint Draft */

    --accent-primary: #0d9488;
    /* Arch. Emerald/Teal */
    --accent-light: rgba(13, 148, 136, 0.1);

    --text-dark: #f8fafc;
    /* Light text on dark bg */
    --text-light-mode: #0f172a;
    /* Dark text on light bg */
    --text-muted: #94a3b8;
    /* Muted Slate */
    --text-muted-light: #64748b;

    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(15, 23, 42, 0.1);

    /* Utilities */
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

.text-accent {
    color: var(--accent-primary);
}

.mt-4 {
    margin-top: 1.5rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.border-top {
    border-top: 1px solid var(--border-light);
}

.text-sm {
    font-size: 0.85rem;
}

/* Background Geometry */
.bg-geometry {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: radial-gradient(var(--bg-light) 2px, transparent 2px);
    background-size: 40px 40px;
}

/* === BUTTONS & UTILITIES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    transition: var(--transition);
    z-index: 1;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-light-mode);
    border-radius: 40px 40px 0 0;
}

.section-light .border-top {
    border-color: var(--border-dark);
}

.section-light .btn-outline {
    color: var(--text-light-mode);
    border-color: var(--border-dark);
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.nav-links-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav-links-mobile a:not(.btn) {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.nav-links-mobile a:hover {
    color: #fff;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(13, 148, 136, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13, 148, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

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

.stats-row {
    display: flex;
    gap: 40px;
    margin-bottom: 2.5rem;
    align-items: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    color: var(--accent-primary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual - Floating UI Composition */
.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-container {
    position: relative;
    width: 340px;
    height: 440px;
    z-index: 2;
}

.profile-bg-shape {
    position: absolute;
    inset: -10px;
    background: var(--accent-primary);
    border-radius: 200px 200px 0 0;
    transform: rotate(-5deg);
    z-index: 0;
    opacity: 0.2;
}

.profile-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 200px 200px 0 0;
    border: 1px solid var(--border-light);
    z-index: 2;
    background: var(--bg-surface);
}

.profile-placeholder {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 200px 200px 0 0;
    border: 1px solid var(--border-light);
    z-index: 2;
    background: var(--bg-surface);
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 3;
    font-weight: 500;
    font-size: 0.95rem;
}

.float-card .icon-box {
    color: var(--accent-primary);
    width: 24px;
    height: 24px;
}

.float-1 {
    bottom: 15%;
    left: -20%;
    animation: floatY 6s ease-in-out infinite;
}

.float-2 {
    top: 20%;
    right: -15%;
    animation: floatY 7s ease-in-out infinite reverse;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* === EXPERTISE & SOFTWARE SKILLS === */
.tech-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.tech-panel {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
}

.tech-panel h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.panel-desc {
    color: var(--text-muted-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tag-accent {
    background: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.edu-block h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-muted-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.edu-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-item strong {
    font-size: 1.05rem;
}

.edu-item span {
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

.tech-skills {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-row {
    display: flex;
    gap: 24px;
}

.s-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.s-text h4 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.s-text p {
    color: var(--text-muted-light);
    line-height: 1.6;
}

/* === EXPERIENCE TIMELINE === */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.tl-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 40px;
}

.tl-dot {
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
    margin-top: 24px;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.glass-panel {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-panel:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.tl-freelance {
    border-style: dashed;
}

.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.tl-header h3 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    color: #fff;
    line-height: 1;
}

.tl-date {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.tl-company {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 400;
}

.tl-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
}

.tl-list li {
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tl-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--accent-primary);
    font-size: 1.2rem;
    line-height: 1;
}

.tl-list strong {
    color: #fff;
}

/* === PROJECTS GRID === */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.proj-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-dark);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.proj-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13, 148, 136, 0.3);
}

.p-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.proj-card h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-light-mode);
}

.p-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.p-list li {
    font-size: 0.9rem;
    color: var(--text-muted-light);
    padding-left: 16px;
    position: relative;
}

.p-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.p-list strong {
    color: var(--text-light-mode);
    display: block;
    margin-bottom: 2px;
}

.p-client {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
}

/* === CONTACT / FOOTER === */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.f-brand h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.f-brand p {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.f-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.7;
}

.f-contact h4 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.c-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    transition: var(--transition);
    font-size: 1rem;
}

.c-link svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.c-link:not(.no-hover):hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-badge {
        margin: 0 auto 1.5rem;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .stats-row,
    .hero-cta {
        justify-content: center;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-box {
        width: 45%;
    }

    .hero-visual {
        height: 400px;
    }

    .profile-container {
        width: 280px;
        height: 380px;
    }

    .float-card {
        display: none;
    }

    /* Hide complex floaters on mobile */

    .timeline::before {
        left: 12px;
    }

    .tl-item {
        grid-template-columns: 24px 1fr;
        gap: 20px;
        margin-left: -4px;
    }

    .tl-dot {
        width: 24px;
        height: 24px;
        margin-top: 28px;
        border-width: 2px;
    }

    .glass-panel {
        padding: 24px;
    }

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

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .stat-box {
        width: 100%;
        text-align: center;
    }

    .stat-icon {
        margin: 0 auto;
    }

    .skill-row {
        flex-direction: column;
        gap: 16px;
    }
}