/* Global Styles */
:root {
    --primary-color: #ffffff;
    /* White accent/buttons */
    --secondary-color: #161616;
    /* Card background */
    --bg-color: #0e0e0e;
    /* Dark Anthracite background */
    --text-color: #d1d1d1;
    /* Light grey text */
    --text-light: #a0a0a0;
    --heading-color: #d4af37;
    /* Gold/Beige Reference Color */
    --white: #ffffff;
    --dark-bg: #0e0e0e;
    --border-color: #262626;
    /* Subtle border */
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Deeper shadow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    /* Increased line-height for airiness */
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Oswald', sans-serif;
    /* Strong condensed font */
    color: var(--heading-color);
    font-weight: 700;
    text-transform: uppercase;
    /* Match the reference style */
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container & Sections */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
    /* More spacing */
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-color);
    /* Keep uniform background for clean look, or slightly lighter if really needed, but user said 'ferah' which can be space */
    /* Let's stick to uniform background but maybe use borders to separate */
    background-color: #111111;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bg-dark {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.text-white {
    color: var(--text-color) !important;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    /* Increased padding */
    background-color: rgba(14, 14, 14, 0.95);
    /* Semi-transparent background */
    backdrop-filter: blur(10px);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: auto;
    /* Changed from 100vh to accommodate video + content naturally */
    min-height: 100vh;
    background: linear-gradient(rgba(15, 15, 26, 0.95), rgba(15, 15, 26, 0.98));
    /* Darkened background since we have video */
    display: flex;
    flex-direction: column;
    /* Stack video and content */
    align-items: center;
    justify-content: flex-start;
    /* Start from top */
    text-align: center;
    color: var(--white);
    padding-top: 0;
    /* Remove top padding to let video touch top */
    position: relative;
    padding-bottom: 60px;
}

.hero-video-container {
    width: 100%;
    height: 380px;
    /* Original height */
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    margin-top: 85px;
    /* Center the slider content */
    display: flex;
    justify-content: center;
    background: #000;
    /* Fallback */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    z-index: 2;
    padding-top: 20px;
    /* Add some extra padding if needed */
}



.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Focus on center */
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Light dark overlay */
    pointer-events: none;
}



.profile-img-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 163, 115, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3.3rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.highlight {
    color: var(--white);
    /* Changed to white as requested */
}

.subtitle {
    font-size: 2.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 26px;
    /* Larger buttons reduced by 20% (approx) */
    border-radius: 4px;
    /* Sharper corners but slight radius */
    font-weight: 700;
    transition: var(--transition);
    margin: 0 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--white);
    color: #000000;
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    opacity: 0.8;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: #000000;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    /* Centered text */
}

.about-videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-video-item {
    width: 100%;
    height: 150px;
    /* Fixed height for uniform look, can be adjusted */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3.3px solid var(--heading-color);
    transition: var(--transition);
}

.about-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-video-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Experience (Timeline) Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Darker BG for Experience */
#experience.bg-light {
    background-color: var(--bg-color);
    /* Maintain dark bg */
    border: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    /* Fainter line */
}

.timeline-item {
    margin-bottom: 50px;
    padding-left: 60px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 13px;
    /* Center on line (line left: 20px, width 1px -> center 20.5. Dot width 16 -> left 12.5) */
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--heading-color);
    /* Gold default */
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-color);
    /* Fake spacing from line */
}

/* First dot white */
.timeline-item:first-child .timeline-dot {
    background: #ffffff;
}

.timeline-date {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    padding-left: 5px;
    /* Visual alignment with dot */
}

.timeline-content {
    background: #161616;
    padding: 25px 30px;
    border-radius: 6px;
    box-shadow: none;
    transition: var(--transition);
    border: none;
    /* No border */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
}

.timeline-content:hover {
    transform: translateY(-2px);
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--heading-color);
    /* Gold */
    letter-spacing: 0.5px;
}

.timeline-content h4 {
    color: #a0a0a0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-bottom: 0;
    font-size: 1rem;
}

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.timeline-content h4 {
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Showreel Section (Timeline Animation) */
.timeline-video-container {
    width: 100%;
    height: 186px;
    background-color: #000;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.timeline-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* Playhead (Static center line) */


/* Skills Section */
.skills-grid {
    display: flex;
    justify-content: space-between;
    /* Push to extreme sides */
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.education-side {
    flex: 0 0 350px;
    text-align: left;
    border-left: 2px solid var(--heading-color);
    /* Vertical gold line */
    padding-left: 30px;
    margin-left: -40px;
    /* Shift further left */
    position: relative;
}

.skills-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Push skills to the right */
    gap: 80px;
    /* Gap between the two skill categories */
    flex-wrap: wrap;
}

.skills-side .skill-category {
    text-align: left;
    /* Keep internal labels left-aligned */
    min-width: 250px;
}

@media (max-width: 900px) {
    .skills-grid {
        flex-direction: column;
        gap: 50px;
    }

    .education-side,
    .skills-side {
        max-width: 100%;
        width: 100%;
    }
}

.skill-category h3 {
    margin-bottom: 20px;
    /* Reduced margin */
    text-align: left;
    /* Aligned to left */
    font-size: 1.3rem;
    /* Slightly smaller title */
    padding-left: 0;
    /* Ensure no extra padding */
}

.skill-bar {
    margin-bottom: 15px;
    /* Reduced margin */
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    align-items: center;
}

.skill-info span {
    display: flex;
    align-items: center;
}

.skill-icon-img {
    width: 25px;
    height: auto;
    margin-right: 10px;
}

.skill-icon {
    margin-right: 10px;
    /* Space between icon and text */
    font-size: 1.1rem;
    /* Match or slightly exceed text size */
    color: var(--primary-color);
    /* Use accent color for icons */
    vertical-align: middle;
}

.skill-steps {
    display: flex;
    gap: 3px;
    /* Reduced gap further */
    max-width: 150px;
    /* Limit width to make them smaller/compact */
}

.step {
    flex: 1;
    height: 4px;
    /* Reduced height further */
    background-color: #333;
    /* Darker background for unfilled steps */
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.step.filled {
    background-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(219, 244, 255, 0.5);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag {
    background: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    font-size: 0.95rem;
    color: #fff;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Contact Section */
.contact-wrapper {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 15px;
    width: 250px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    background: #252525;
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
}

.social-links {
    margin-bottom: 50px;
}

.social-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(360deg);
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-video-container {
        height: auto;
        aspect-ratio: 16 / 9;
        margin-top: 70px; /* slightly smaller margin for mobile navbar */
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        top: 70px;
        background: var(--secondary-color);
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -9px;
    }
}

/* Comparison Slider Styles */


/* Video Portfolio Section */
#portfolio {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('isik1.jpg'),
        url('isik2.jpg'),
        url('isik3.jpg');
    background-position:
        0 0,
        0 center,
        33.333vw center,
        66.666vw center;
    /* Aligning them across the screen width */
    background-size:
        auto,
        34vw auto,
        /* Using vw/vh for fixed attachment coverage */
        34vw auto,
        34vw auto;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    position: relative;
    background-color: #000;
    /* Fallback for gaps */
}

#portfolio .section-title {
    color: var(--white);
    /* Ensure title is white */
}

.portfolio-grid {
    display: grid;

    /* Create a 3-column grid. On smaller screens, it will wrap. */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    /* Constrain the total width to make items smaller (approx 50% reduction visually if it was full width before) */
    max-width: 800px;
    margin: 0 auto;
    /* Center the grid */
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: block;
    /* For anchor tag */
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    border: 2px solid var(--white);
    transition: transform 0.3s ease, background 0.3s ease;
}

.portfolio-item:hover .portfolio-thumb {
    transform: scale(1.05);
    /* Zoom effect */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .play-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    border-color: var(--primary-color);
}



/* Portfolio Header Redesign */
.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-markers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.timeline-markers span {
    width: 2px;
    height: 15px;
    background-color: #fff;
    display: block;
    border-radius: 1px;
}

.timeline-markers span:nth-child(5n) {
    height: 25px;
    /* Taller every 5th line */
    margin-top: -5px;
}

.rec-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.rec-dot {
    width: 14px;
    height: 14px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Skills Redesign (Solid Lines) */
.skill-steps {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    height: 3px;
    width: 100%;
    margin-top: 5px;
    border-radius: 2px;
    overflow: hidden;
    /* Ensure filled bar stays inside */
}

.skill-steps .step {
    height: 100%;
    margin: 0;
    border-radius: 0;
    background-color: transparent;
    /* Default transparent */
}

.skill-steps .step.filled {
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    border-right: none;
    /* Seamless */
}

/* Education Section */
.education-item {
    margin-bottom: 30px;
    font-size: 1rem;
    /* Larger font */
    color: var(--text-light);
}

.edu-date {
    display: block;
    color: var(--heading-color);
    /* Gold */
    font-weight: 700;
    font-size: 1.1rem;
    /* Larger font */
    margin-bottom: 8px;
    font-family: 'Oswald', sans-serif;
}

.education-item p {
    margin: 0;
    line-height: 1.5;
    color: #fff;
    font-size: 1.05rem;
    /* Larger font */
    font-family: 'Inter', sans-serif;
}

/* Scrolling Timeline Strip */
.scrolling-timeline {
    width: 100%;
    height: 40px;
    background-image: url('qqq1.JPG');
    background-repeat: repeat-x;
    background-size: auto 100%;
    animation: scrollTimeline 30s linear infinite;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    opacity: 0.8;
}

/* Playhead Line */
.scrolling-timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 2;
}

@keyframes scrollTimeline {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1500px 0;
    }
}