* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    color: var(--text-color);
}

/* Default body style for index page */
body:not(.with-footer) {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 1rem 2rem;
    min-height: 100vh;
}

/* Style for pages with footer (like photos page) */
body.with-footer {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    margin-bottom: auto;
}

.profile-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 130px;
}

.social-button i {
    font-size: 1.2rem;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.twitter {
    background: #1DA1F2;
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.linkedin {
    background: #0077B5;
}

.spotify {
    background: #1DB954;
}

.content-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.content-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.content-button span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.content-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.content-button:hover::before {
    opacity: 1;
}

.content-button:hover span {
    color: white;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .bio {
        font-size: 1rem;
    }

    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-button {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Add these styles */
.language-switcher {
    display: none;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.gallery-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.gallery-header .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.back-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #555;
}

.loading-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 3/2;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
    -webkit-text-fill-color: white;
}

.gallery-item .overlay p {
    font-size: 0.9rem;
    margin: 0;
}

/* Container modifications for gallery page */
.container.gallery-container {
    max-width: 1200px;
    padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }

    .gallery-header .subtitle {
        font-size: 1rem;
    }
}

/* Add these styles for the photos page */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Language Switch Styles */
.switch-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.lang-btn[data-lang="en"] {
    background: var(--primary-color);
    color: white;
}

.lang-btn[data-lang="tr"] {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Navbar içindeki switch-container için farklı stiller */
.navbar .switch-container {
    position: static;
    margin-left: 1rem;
    transform: none;
    background: none;
    backdrop-filter: none;
}

/* Ana sayfa için mobil düzenlemeler */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    .profile-section {
        text-align: center;
        margin-top: 2rem;
    }

    /* Default body style for index page */
    body:not(.with-footer) {
        padding: 4rem 1rem 2rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 1.5rem;
    }

    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .bio {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-button {
        width: 100%;
    }

    .content-links {
        flex-direction: column;
        gap: 1rem;
    }

    .content-button {
        width: 100%;
    }
}

.gallery-section {
    padding: 2rem;
    margin-top: 2rem;
}

.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-section h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    aspect-ratio: 3/2;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
    -webkit-text-fill-color: white;
}

.gallery-item .overlay p {
    font-size: 0.9rem;
    margin: 0;
}

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    margin-top: auto;
}

.footer .container {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-right {
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .gallery-section {
        padding: 5rem 1rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* Active state for language buttons */
.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.lang-btn:not(.active) {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Hide old language switcher */
.language-switcher {
    display: none !important;
}

@media (max-width: 768px) {
    .switch-container {
        margin-left: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* GPA Calculator Styles */
.calculator-section {
    padding: 8rem 0 4rem;
    min-height: calc(100vh - 60px);
}

.calculator-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.course-entry {
    display: grid;
    grid-template-columns: 1fr 120px 120px 40px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.course-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.course-entry input,
.course-entry select {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.course-entry input:focus,
.course-entry select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.delete-course {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.delete-course:hover {
    background: #fee2e2;
}

.calculator-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.secondary-btn {
    background: var(--section-bg);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.result-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--section-bg);
    border-radius: 12px;
}

.result-section h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.gpa-result {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .course-entry {
        grid-template-columns: 1fr 80px 80px 40px;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .calculator-controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Add these styles to your existing GPA Calculator styles */
.previous-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 8px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: var(--text-color);
}

.input-group input {
    padding: 0.5rem;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.course-input {
    display: grid;
    grid-template-columns: auto 100px 100px 150px auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.course-label {
    font-weight: 500;
    color: var(--text-color);
}

.old-grade-container {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn {
    padding: 0.5rem 1rem;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.result-info {
    padding: 1rem;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.result-values {
    display: grid;
    gap: 1rem;
}

.result-values p {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .previous-info {
        grid-template-columns: 1fr;
    }

    .course-input {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .old-grade-container {
        margin-top: 0.5rem;
    }
}

/* Add these styles for the lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* Gallery Item Overlay - Mobile Optimization */
@media (max-width: 768px) {
    .gallery-item .overlay {
        /* Her zaman görünür olması için */
        opacity: 1;
        /* Alt kısımda sabit durması için */
        position: absolute;
        bottom: 0;
        /* Arka plan gradientini daha belirgin yapalım */
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            transparent 100%);
        /* Padding ayarı */
        padding: 1rem;
    }

    .gallery-item .overlay h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .gallery-item .overlay p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Hover efektini mobilde kaldıralım */
    .gallery-item:hover .overlay {
        opacity: 1;
    }
}

/* Responsive Design - Update navbar styles */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-right {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .switch-container {
        width: 100%;
        justify-content: flex-end;
        margin: 0;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Adjust container padding for content below navbar */
    .gallery-section {
        padding-top: 12rem;
    }
}

/* For very small screens */
@media (max-width: 380px) {
    .nav-links {
        font-size: 0.85rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-right {
        display: none;
        width: 100%;
        padding: 1rem 0;
    }

    .nav-right.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
    }

    .switch-container {
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
} 