* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1f2937;
    background: #f8fafc;
    overflow-x: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #10b981;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header {
    background: #1e293b;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(30, 41, 59, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease, font-style 0.3s ease;
}

.nav-link:hover {
    color: #10b981;
    font-style: italic;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #10b981;
    font-style: italic;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

section {
    padding: 4rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    min-width: 320px;
    min-height: 100vh;
}

#home {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    color: #fff;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    opacity: 1;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero {
    position: relative;
    z-index: 2;
    opacity: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.hero .subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.typed-text {
    color: #10b981;
    font-weight: 600;
    font-style: normal;
    border-right: 2px solid #10b981;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #fff;
}

.cta-button.secondary:hover {
    background: #fff;
    color: #1e293b;
    border-color: #fff;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1e293b;
    position: relative;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #10b981;
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 100px;
}

#about {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-picture {
    width: 300px;
    height: 300px;
    max-width: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05) rotate(0.5deg);
    filter: brightness(1.3);
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text p {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #6b7280;
}

.italic-text {
    font-style: italic;
    font-family: 'Roboto', sans-serif;
}

#skills {
    background: #fff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #10b981;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-left: 3px solid #10b981;
}

.skill-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.skill-card p {
    font-family: 'Roboto', sans-serif;
    color: #6b7280;
    font-size: 0.9rem;
}

#projects {
    background: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.2rem;
    position: relative;
    z-index: 2;
}

.project-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.project-info p {
    font-family: 'Roboto', sans-serif;
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-link {
    font-family: 'Roboto', sans-serif;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease, font-style 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.project-link:hover {
    color: #10b981;
    font-style: italic;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

.project-link:hover::after {
    width: 100%;
}

#education {
    background: #f8fafc;
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.education-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.education-item p {
    font-family: 'Roboto', sans-serif;
    color: #6b7280;
    font-size: 0.9rem;
}

#contact {
    background: #fff;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #10b981;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-left: 3px solid #10b981;
}

.contact-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-icon {
    color: #10b981;
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-card a {
    font-family: 'Roboto', sans-serif;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease, font-style 0.3s ease;
}

.contact-card a:hover {
    color: #10b981;
    font-style: italic;
}

.contact-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

.contact-card a:hover::after {
    width: 100%;
}

footer {
    background: #1e293b;
    color: #fff;
    text-align: center;
    padding: 1.2rem 0;
    font-size: 0.8rem;
    position: relative;
}

footer p {
    font-family: 'Roboto', sans-serif;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    min-height: 400px;
    padding: 2rem;
    position: relative;
    boxorz-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #1e293b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #10b981;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.modal-media {
    margin-bottom: 1.5rem;
}

.modal-content video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    background: #000;
}

.modal-content img {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    object-fit: contain;
}

.modal-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.modal-content ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
}

.modal-content ul li {
    background: #e2e8f0;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .profile-picture {
        width: 250px;
        height: 250px;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 3.5rem 1.2rem;
    }

    .modal-content {
        max-width: 700px;
    }

    .modal-content video,
    .modal-content img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #1e293b;
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .logo {
        font-size: 1.6rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-picture {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-content h2 {
        font-size: 1.8rem;
    }

    .modal-content video,
    .modal-content img {
        max-height: 250px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .profile-picture {
        width: 180px;
        height: 180px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-content h2 {
        font-size: 1.6rem;
    }

    .modal-content video,
    .modal-content img {
        max-height: 200px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .contact-card a {
        font-size: 0.8rem;
    }
}