/* --- Global Variables --- */
:root {
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent: #f97316; /* Clean modern orange */
    --accent-light: #ffedd5;
    --accent-dark: #ea580c;
    --border-color: #e2e8f0;
    
    --font-main: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    --transition: 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Utilities --- */
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.max-w-800 { max-width: 800px; margin: 0 auto; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}
.btn-primary {
    background-color: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}
.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-secondary:hover {
    background-color: var(--accent-light);
}

/* --- Header / Nav --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

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

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

.desktop-cta {
    padding: 0.6rem 1.2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all var(--transition);
}

/* --- Hero Section --- */
.hero-section {
    padding: 6rem 0;
    border-bottom: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.name-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
}

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

.image-wrapper {
    width: 320px;
    height: 380px;
    border-radius: 16px;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent), #fcd34d);
    box-shadow: var(--shadow-md);
    transform: rotate(2deg);
    transition: transform var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0deg);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid white;
}

/* --- Sections --- */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    position: relative;
}

.center-title {
    text-align: center;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* --- Creative Components --- */

/* Skills Flex Tags */
.skills-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}
.skill-tag {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.skill-tag:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Vertical Timeline */
.vertical-timeline {
    position: relative;
    padding-left: 2rem;
}
.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 4px var(--bg-light);
    transition: all var(--transition);
}
.timeline-item:hover .timeline-dot {
    background: var(--accent);
    transform: scale(1.2);
}
.timeline-content {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.timeline-item:hover .timeline-content {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}
.timeline-role {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.timeline-company {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.8rem;
}
.timeline-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-block;
    background: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

/* Project Cards */
.projects-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.project-card-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.project-card-inner {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}
.project-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}
.project-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}
.project-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.project-link:hover {
    color: var(--accent-dark);
}

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.data-table, .info-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td,
.info-table th, .info-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.data-table tr:last-child td, .info-table tr:last-child td {
    border-bottom: none;
}

.data-table th {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table td, .info-table td {
    color: var(--text-secondary);
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 35%;
    background-color: var(--bg-light);
}

.table-styled tbody tr {
    transition: all var(--transition);
}
.table-styled tbody tr:hover {
    background-color: var(--bg-light);
}
.info-table.table-styled tr:hover td:first-child {
    color: var(--accent);
}

/* --- Lists --- */
.arrow-list {
    list-style: none;
}

.arrow-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.arrow-list li::before {
    content: '➢';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Contact & Declaration --- */
.contact-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.5rem;
    font-size: 1rem;
}

.contact-label {
    font-weight: 600;
    color: var(--text-primary);
}

.contact-value {
    color: var(--text-secondary);
}

.declaration-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.declaration-container .section-title {
    margin-bottom: 1.5rem;
}
.declaration-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.print-only-contact {
    display: none;
}

/* --- Footer --- */
.footer {
    background-color: white;
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem 0;
        flex-direction: column;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        display: none;
    }

    .main-nav.active {
        display: flex;
    }

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

    .mobile-menu-btn {
        display: flex;
    }

    .section { padding: 4rem 0; }
    
    .image-wrapper {
        width: 260px;
        height: 320px;
    }
}

/* --- Print Styles --- */
@media print {
    body {
        background-color: #fff;
        color: #000;
        font-size: 11pt; /* Better for printing */
    }
    
    /* Ensure animations don't hide content */
    .fade-in-up, .appear {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Hide website-specific elements */
    .header, .footer, .hero-cta, .mobile-menu-btn {
        display: none !important;
    }

    /* Reset section padding and backgrounds */
    .section {
        padding: 1.5rem 0 !important;
        border: none !important;
        background-color: transparent !important;
        page-break-inside: auto;
    }

    .container {
        padding: 0;
        max-width: 100%;
    }

    /* Simplify Hero Section */
    .hero-section {
        padding: 0 0 2rem 0 !important;
    }
    .hero-container {
        flex-direction: row !important;
        align-items: flex-start;
        gap: 2rem;
    }
    .hero-content {
        flex: 1;
        text-align: left !important;
    }
    .print-only-contact {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 0.5rem 1rem;
        margin-bottom: 1.5rem;
        text-align: left !important;
    }
    .contact-details {
        display: none !important;
    }
    .grid-2 {
        display: block !important;
    }
    .greeting {
        display: none;
    }
    .name-title {
        font-size: 24pt;
        color: var(--accent) !important;
        margin-bottom: 0.2rem;
    }
    .hero-role {
        font-size: 14pt;
        color: #000;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    .hero-description {
        font-size: 11pt;
        color: #333;
        margin-bottom: 0;
    }
    .hero-image {
        flex-shrink: 0;
    }
    .image-wrapper {
        width: 150px;
        height: 180px;
        box-shadow: none !important;
        transform: none !important;
        padding: 0;
        border: 2px solid var(--accent);
        background: transparent !important;
    }
    .portrait-img {
        border: none;
    }

    /* Format Titles */
    .section-title {
        background: var(--accent-light) !important;
        color: var(--accent-dark) !important;
        padding: 0.5rem 1rem !important;
        font-size: 14pt;
        text-align: left !important;
        margin-bottom: 1.5rem;
        border-radius: 4px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .section-title span.accent-text {
        display: none; /* Hide the decorative dot */
    }

    /* Prevent breaking inside components */
    .timeline-item, .project-card-item, .contact-details, tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .timeline-content, .project-card-item, .table-responsive {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        transform: none !important;
    }
    
    .skill-tag {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        padding: 0.2rem 0.6rem;
        transform: none !important;
    }
    
    .timeline-dot {
        border-color: #333 !important;
        transform: none !important;
    }

    .contact-grid {
        grid-template-columns: 120px 1fr;
    }
    
    .declaration-container {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        text-align: left !important;
    }
    .declaration-container .section-title {
        text-align: left !important;
    }
    
    a {
        text-decoration: none !important;
        color: #000 !important;
    }
    
    /* Ensure colors print properly */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
