/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #c0c0c0;
    background-color: #0a1a2f;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 26, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 26, 47, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand .brand-link {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand .brand-link:hover {
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #c0c0c0;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c0c0c0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #c0c0c0;
    margin: 3px 0;
    transition: 0.3s;
}

/* Music Player */
.music-player {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(192, 192, 192, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a1a2f;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 47, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Semi-transparent background behind hero text for readability */
.hero-content {
    background: rgba(10, 26, 47, 0.45); /* dark navy with transparency */
    backdrop-filter: blur(2px);
    padding: 20px 24px;
    border-radius: 12px;
    display: inline-block;
}

/* Hero text slider */
.hero-slider {
    position: relative;
    min-height: 140px;
    overflow: hidden;
    margin-top: 8px;
}

.hero-slider .slide {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: absolute;
    inset: 0;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.slider-dots {
    display: flex;
    gap: 10px;
    justify-content: center; /* place dots centered between text and CTAs */
    align-items: center;
    margin: 12px auto 16px; /* slight space above and below */
}

.slider-dots .dot {
    width: 12px;  /* slightly larger for better tap target */
    height: 12px;
    border-radius: 50%;
    background: rgba(192, 192, 192, 0.4);
    border: 1px solid rgba(192, 192, 192, 0.6);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slider-dots .dot.active {
    background: #c0c0c0;
    transform: scale(1.1);
}

/* Accessibility: focus style */
.slider-dots .dot:focus-visible {
    outline: 2px solid #c0c0c0;
    outline-offset: 2px;
}

/* On small screens, center dots under the text block */
@media (max-width: 768px) {
    .slider-dots {
        margin-top: 12px;
    }
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #c0c0c0;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #c0c0c0;
    color: #0a1a2f;
    border-color: #c0c0c0;
}

.btn-primary:hover {
    background: transparent;
    color: #c0c0c0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #c0c0c0;
    border-color: #c0c0c0;
}

.btn-secondary:hover {
    background: #c0c0c0;
    color: #0a1a2f;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #c0c0c0;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(192, 192, 192, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c0c0c0;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Experience Section */
.experience {
    background: rgba(192, 192, 192, 0.02);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #c0c0c0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: transparent;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: #c0c0c0;
    border-radius: 50%;
    top: 15px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-year {
    font-weight: 600;
    color: #c0c0c0;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content p {
    opacity: 0.8;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-item {
    background: rgba(192, 192, 192, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(192, 192, 192, 0.1);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.education-item h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.education-item p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.education-year {
    color: #c0c0c0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Licenses Section */
.licenses {
    background: rgba(192, 192, 192, 0.02);
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.license-item {
    background: rgba(192, 192, 192, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(192, 192, 192, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.license-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.license-icon {
    font-size: 2.5rem;
    color: #c0c0c0;
    margin-bottom: 20px;
}

.license-item h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.license-item p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Skills Section */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-tag {
    background: rgba(192, 192, 192, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    color: #c0c0c0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(192, 192, 192, 0.2);
    transform: translateY(-2px);
}

/* Podcasts Section */
.podcasts {
    padding: 100px 0;
    background: rgba(192, 192, 192, 0.02);
}

.podcast-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.podcast-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.podcast-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9; /* YouTube standardı 16:9 oranı */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
    border-radius: 8px 8px 0 0;
}

.podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    background: #000;
}

.podcast-card {
    padding: 0;
    overflow: hidden;
}

.podcast-content {
    padding: 25px 30px;
    background: rgba(10, 26, 47, 0.8);
    border-radius: 0 0 8px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.podcast-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.podcast-content p {
    color: #c0c0c0;
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
}

.podcast-content .btn {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.podcast-content .btn i {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .podcast-card {
        flex-direction: column;
    }
    
    .podcast-image {
        height: 250px;
    }
    
    .podcast-content {
        padding: 20px;
    }
    
    .podcast-content h3 {
        font-size: 1.3rem;
    }
}

/* Books Section */
.books {
    background: rgba(192, 192, 192, 0.02);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.book-card {
    background: rgba(192, 192, 192, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(192, 192, 192, 0.1);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.book-cover {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 192, 192, 0.05);
}

.book-cover img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-info {
    padding: 30px;
}

.book-info h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.book-meta {
    color: #c0c0c0;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.book-description {
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.9;
}

.book-info .btn {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    /* Remove zoom on hover to prevent visual scaling */
    transform: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: contain; /* fit inside frame without cropping/zooming */
    display: block;
    background: rgba(0, 0, 0, 0.2); /* subtle letterbox background */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Weather Section */
.weather {
    background: rgba(192, 192, 192, 0.02);
}

.weather-widget {
    display: flex;
    justify-content: center;
}

.weather-widget iframe {
    max-width: 100%;
    border-radius: 15px !important;
    border: 1px solid rgba(192, 192, 192, 0.2) !important;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: rgba(192, 192, 192, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(192, 192, 192, 0.05);
    border: 2px solid rgba(192, 192, 192, 0.1);
    border-radius: 10px;
    color: #c0c0c0;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c0c0c0;
    background: rgba(192, 192, 192, 0.1);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: rgba(192, 192, 192, 0.7);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background: #0a1a2f;
    padding: 0 10px;
    color: #c0c0c0;
}

.contact-info h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(192, 192, 192, 0.1);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c0c0;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #c0c0c0;
    color: #0a1a2f;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: rgba(10, 26, 47, 0.8);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(192, 192, 192, 0.1);
}

.footer p {
    opacity: 0.7;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 26, 47, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline-item::after {
        left: 22px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

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

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

    .book-info .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .music-player {
        top: 80px;
        right: 15px;
    }

    .music-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    section {
        padding: 60px 0;
    }

    .weather-widget iframe {
        width: 100%;
        max-width: 290px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .book-card {
        margin: 0 10px;
    }

    .contact-form {
        padding: 30px 20px;
    }

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

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

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