:root {
    --primary-color: #00796b;
    /* Teal color from image */
    --primary-dark: #004d40;
    --secondary-color: #b2dfdb;
    --bg-color: #ffffff;
    --bg-light: #e0f2f1;
    /* Very light teal for footer/accents */
    --text-primary: #212121;
    --text-secondary: #546e7a;
    --accent-gold: #d4a017;
    /* Mustard/Gold to match headscarf */
    --white: #ffffff;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    /* Cleaner sans-serif like image */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --easing-premium: cubic-bezier(0.65, 0, 0.35, 1);
    --white: #ffffff;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    opacity: 0.5;
    transition: width 0.2s, height 0.2s;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
}

h2.section-title {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    color: var(--primary-color) !important;
}

/* Premium Reveal Effects */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    display: inline-block;
}

.reveal-text > span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.2s var(--easing-premium);
}

.reveal-text.visible > span {
    transform: translateY(0%);
}

/* Magnetic Interaction Anchor */
.magnetic-wrap {
    display: inline-block;
    transition: transform 0.3s ease-out;
}

.section-line {
    height: 1px;
    background: var(--text-secondary);
    flex-grow: 1;
    margin-left: 20px;
    opacity: 0.3;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-color);
    /* Solid Teal Header */
    z-index: 1000;
    height: 60px;
    /* Slimmer header */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-main);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--white);
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--white);
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--white);
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-direction: row;
    /* Side by side */
}

/* Hero Image Styling - Large Circle */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--secondary-color);
    /* Light teal border */
    box-shadow: 0 10px 30px rgba(0, 121, 107, 0.2);
}

.hero-content {
    flex: 1;
    text-align: left;
    z-index: 2;
}

.hero h2 {
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: normal;
    text-transform: none;
}

.hero h1 {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero p, .hero-typewriter {
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    min-height: 1.6rem;
}

#typewriter-text {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s linear infinite;
}

.typing-cursor {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1;
    margin-left: 2px;
    animation: blink-cursor 0.75s step-end infinite;
    -webkit-text-fill-color: var(--primary-color);
}

@keyframes blink-cursor {
    from, to { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes gradient-shift {
    to { background-position: 200% center; }
}

.highlight {
    color: var(--primary-color);
}

.hero-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    /* Align icons and button */
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border-radius: 25px;
    /* Pill shape */
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.1);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 121, 107, 0.2);
}


.btn-secondary {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.scroll-down {
    display: none;
    /* Removed for this cleaner design */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section adjustments */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stacked for this design, since image is in hero */
    gap: 30px;
    align-items: start;
    margin-top: 30px;
}

.about-image {
    display: none;
    /* Hide duplicate image in about section */
}

.about-img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 20px 20px 0px var(--secondary-color);
    transition: var(--transition);
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 20px 20px 0px var(--primary-color);
}

/* Replacing old placeholder styles since we are using an img tag now */
.img-placeholder {
    display: none;
}

.about-text h3.about-tagline {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.intro-large {
    font-size: 1.2rem !important;
    line-height: 1.8;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
}

.about-highlights-simple {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlight-item-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.highlight-item-simple i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.personal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 2rem;
}

.info-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.info-item .label {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 600;
}

.lang-tags span {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

/* Timeline / Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--text-secondary);
    opacity: 0.2;
    top: 0;
    bottom: 0;
    left: 20px;
}

@media(min-width: 768px) {
    .timeline::after {
        left: 50%;
        margin-left: -1px;
    }
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 100%;
    /* For mobile */
    box-sizing: border-box;
}

@media(min-width: 768px) {
    .timeline-item {
        width: 50%;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }
}

.timeline-date {
    color: var(--primary-color);
    font-family: monospace;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px -15px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.timeline-content h4 {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-content ul li {
    list-style-type: none;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Education Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 109, 119, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card .institution {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.card .year,
.card .grade {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Projects */
.project-cards {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--white);
    /* In a real premium design, I'd use an image-heavy layout, but text-heavy for now from CV */
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.project-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.project-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.project-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 109, 119, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-family: monospace;
}

.project-content p {
    color: var(--text-secondary);
}

/* Skills Redesign */
/* Skills Section Redesign */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 121, 107, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    opacity: 0.8;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 121, 107, 0.1);
    border-color: var(--secondary-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-category h3 i {
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.skill-item {
    background: var(--bg-light);
    padding: 15px 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    gap: 8px;
    border: 1px solid transparent;
}

.skill-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-item:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 121, 107, 0.1);
}

.skill-item:hover i {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    padding: 50px 0 20px;
    background: var(--bg-light);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 121, 107, 0.15);
    border-color: var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
}

.contact-link i {
    font-size: 1.4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero .container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        margin-top: 20px;
    }

    .hero-image-wrapper {
        order: 1;
        /* Image first on mobile? Or text first? Let's do image first as per typical profiles */
    }

    .hero-img {
        width: 250px;
        height: 250px;
    }

    .hero-content {
        order: 2;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-socials {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Need JS toggle for hamburger */
    }

    .hamburger {
        display: block;
    }

    .personal-info {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.5, 0, 0, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* CV Modal */
.cv-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cv-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.cv-modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.cv-modal.active .cv-modal-content {
    transform: scale(1);
}

.close-cv {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-secondary);
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-cv:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-right: 60px;
}

.cv-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2rem;
    font-family: var(--font-heading);
}

.cv-viewer {
    flex: 1;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #444;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 121, 107, 0.2);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}