:root {
    --primary: #E30613;
    --secondary: #063D5D;
    --accent: #ff8390;
    --light: #ffffff;
    --dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Sans Pro', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
    line-height: 1;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.slogan-container {
    overflow: hidden;
    display: flex;
    align-items: center;
    min-width: 400px;
}

.slogan {
    color: var(--secondary);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 550;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    white-space: nowrap;
    width: 100%;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--secondary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Carousel Styles */
.carousel-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-items {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--light);
    width: 100%;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.7) 30%,
        rgba(0,0,0,0.4) 60%,
        rgba(0,0,0,0) 100%);
    transform: none;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.carousel-caption p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-weight: 400;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

/* Section Styles */
.section {
    padding: 5rem 2rem;
    text-align: center;
}

.section h2 {
    color: var(--secondary);
    margin-bottom: 2rem;
}

/* Cards */
.cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: scale-in 0.5s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 5% cover 15%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.project-card h3 {
    color: var(--secondary);
    font-size: 1.4rem;
    margin: 1.5rem 1.5rem 1rem;
    line-height: 1.4;
    font-weight: 650;
}

.project-card p {
    color: #000000;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 1.5rem 1.5rem;
    flex-grow: 1;
    opacity: 0.9;
    font-weight: 550;
}

.project-card.wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: start;
    background: linear-gradient(to right, var(--light) 50%, rgba(248, 249, 250, 0.95) 100%);
}

.project-card.wide .image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1.5rem;
    height: 100%;
    align-self: start;
}

.project-card.wide .image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-card.wide .image-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-card.wide .content-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-right: 1rem;
}

.project-card.wide h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    color: var(--secondary);
    font-weight: 650;
    line-height: 1.3;
}

.project-card.wide p {
    margin: 0;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #000000;
    opacity: 0.9;
    font-weight: 550;
}

/* Footer Styles */
footer {
    background-color: var(--secondary);
    color: var(--light);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-triangle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 200px 200px;
    border-color: transparent transparent var(--primary) transparent;
    z-index: 1;
}

.footer-moon {
    position: absolute;
    bottom: 45px;
    right: 45px;
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    z-index: 2;
    transform: rotate(0.6turn);
}

.footer-moon::before {
    content: '';
    position: absolute;
    width: 34px;
    height: 34px;
    top: 3px;
    right: -6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.footer-star {
    position: absolute;
    bottom: 65px;
    right: 65px;
    width: 20px;
    height: 20px;
    background-color: var(--light);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo .logo-text {
    color: var(--light);
    font-size: 1.8rem;
    margin: 0;
}

.footer-logo p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-links h4 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-social {
    text-align: center;
}

.footer-social h4 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--light);
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.social-links a:hover {
    opacity: 1;
    background: var(--accent);
    transform: translateY(-3px);
    color: var(--light);
}

.social-links i {
    line-height: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-social {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-triangle {
        border-width: 0 0 150px 150px;
    }
    
    .footer-moon {
        bottom: 30px;
        right: 30px;
        width: 30px;
        height: 30px;
    }
    
    .footer-moon::before {
        width: 26px;
        height: 26px;
        top: 2px;
        right: -4px;
    }
    
    .footer-star {
        bottom: 50px;
        right: 50px;
        width: 15px;
        height: 15px;
    }

    .project-card.wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .project-card.wide .image-gallery {
        grid-template-rows: repeat(2, 160px);
        gap: 1rem;
    }
    
    .project-card.wide .content-wrapper {
        text-align: center;
        padding-right: 0;
    }

    .project-card.wide h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .project-card.wide p {
        font-size: 1rem;
        text-align: center;
    }

    .project-grid {
        padding: 1rem;
        gap: 2rem;
    }
}

/* Hakkımda Section Styles */
.content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 0 2rem;
    animation: scale-in 0.5s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 5% cover 15%;
}

.profile-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.text {
    flex: 1;
}

.text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    white-space: pre-line;
    margin-bottom: 1rem;
    font-weight: 550;
}

.text p:last-child {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary);
    margin-top: 0rem;
    margin-left: 0.5rem;
    transform: rotate(-3deg);
    display: inline-block;
    position: relative;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.25);
}

/* Çat Tanıtım Section Styles */
.cat-section {
    position: relative;
}

.cat-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cat-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: scale-in 0.5s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 5% cover 15%;
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cat-content {
    padding: 1.5rem;
}

.cat-content h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 650;
}

.cat-content p {
    color: #000000;
    line-height: 1.6;
    text-align: justify;
    font-weight: 550;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        width: 100%;
        transition: right 0.5s ease;
        gap: 2rem;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .burger {
        display: block;
    }

    /* Burger animation */
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .cards {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .content {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin-bottom: 2rem;
    }
    
    .text {
        text-align: center;
    }
    
    .text p:last-child {
        margin-left: 0;
        font-size: 2rem;
        transform: rotate(-3deg);
    }

    .cat-container {
        grid-template-columns: 1fr;
    }
    
    .cat-card img {
        height: 200px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .project-card.wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .project-card.wide .image-gallery {
        grid-template-rows: repeat(2, 160px);
        gap: 1rem;
    }
    
    .project-card.wide .content-wrapper {
        text-align: center;
        padding-right: 0;
    }

    .project-card.wide h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .project-card.wide p {
        font-size: 1rem;
        text-align: center;
    }

    .carousel-item {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .carousel-item img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit:contain;
    }

    .carousel-caption {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        background: var(--secondary);
        padding: 1.5rem;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
        margin: 0;
    }
}

@media screen and (max-width: 480px) {
    .signature-content {
        transform: translate(-50%, -50%) scale(0.8);
    }
    
    .signature-name {
        font-size: 2.5rem;
    }

    .logo-text {
        font-size: 1.6rem;
    }
}

/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 4s forwards;
}

.signature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    width: 100%;
    max-width: 520px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.signature-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 520/168;
}

.signature-wrapper svg {
    width: 100%;
    height: 100%;
}

.signature-wrapper svg path {
    stroke: var(--dark);
    stroke-width: 5;
    stroke-dashoffset: 2741.4345703125px;
    stroke-dasharray: 2741.4345703125px;
    animation: signatureAnimation 3s ease forwards;
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--dark);
    margin-top: 0;
    transform: rotate(-3deg);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.25);
    opacity: 0;
    animation: fadeInName 0.5s ease forwards 3s;
}

@keyframes signatureAnimation {
    to {
        stroke-dashoffset: 0px;
    }
}

@keyframes fadeInName {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(-3deg);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media screen and (max-width: 768px) {
    .signature-content {
        transform: translate(-50%, -50%) scale(0.9);
    }
    
    .signature-name {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 480px) {
    .signature-content {
        transform: translate(-50%, -50%) scale(0.8);
    }
    
    .signature-name {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 1200px) {
    .slogan-container {
        min-width: 300px;
    }
}

@media screen and (max-width: 1024px) {
    .slogan-container {
        display: none;
    }
}

/* City Separator Styles */
.city-separator {
    width: 100%;
    padding: 0.5rem 0;
    overflow: hidden;
    position: relative;
}

.city-separator::before,
.city-separator::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.city-separator::before {
    left: 0;
    background: linear-gradient(to right, var(--light), transparent);
}

.city-separator::after {
    right: 0;
    background: linear-gradient(to left, var(--light), transparent);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: scroll 60s linear infinite;
    white-space: nowrap;
    gap: 0.6rem;
    will-change: transform;
}

.marquee-content span {
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 0.15rem 0;
    transition: all 0.2s ease;
}

.marquee-content span::after {
    content: '·';
    margin-left: 0.4rem;
    margin-right: -0.2rem;
    opacity: 0.7;
    font-weight: 700;
}

.marquee-content .highlight-city {
    color: var(--primary);
    font-weight: 700;
}

.marquee-content .highlight-city::after {
    color: var(--dark);
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* Duplicate marquee content for seamless scrolling */
.marquee-content {
    display: flex;
}

.marquee-content span {
    flex-shrink: 0;
}

.modern-separator {
    position: relative;
    height: 1px;
    width: 100%;
    margin: 2rem 0;
    background: linear-gradient(
        to right,
        transparent,
        var(--secondary) 20%,
        var(--secondary) 80%,
        transparent
    );
    opacity: 0.3;
}

.modern-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    opacity: 0.6;
}

@keyframes scale-in {
    from {
        transform: scale(0.7);
        opacity: 0.2;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.project-card, .cat-card, .content {
    view-timeline: --reveal-timeline block;
    animation-name: scale-in;
    animation-fill-mode: both;
    animation-timeline: --reveal-timeline;
    animation-range: entry 0% cover 30%;
}

@supports not (animation-timeline: view()) {
    .project-card,
    .cat-card,
    .content {
        opacity: 1;
        transform: scale(1);
    }
} 