:root {
    --color-white: #ffffff;
    --color-black: #0f1727;
    --color-black-rgb: 15, 23, 39;
    --color-blue: #0B60EA;
    --color-blue-rgb: 11, 96, 234;
    --color-pink: #EC4899;
    --color-pink-rgb: 236, 72, 153;
    --color-gray: #F3F4F6;
    --color-gray-rgb: 243, 244, 246;
    --color-dark-gray: #666666;
    --color-dark-gray-rgb: 102, 102, 102;
    --color-light-blue: #EFF6FF;
    --color-light-blue-rgb: 239, 246, 255;
    
    
    --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-black);
    background-color: var(--color-white);
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    height: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
}

ul {
    list-style: none;
}

ul, li {
    color: #141414;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--color-dark-gray);
    position: relative;
    padding: 0.5rem 0;
}

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

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


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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-gray);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}



.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    background: url('images/hero-bg.svg') no-repeat center center/cover;
}


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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 auto;
    letter-spacing: -1px;
    color: var(--color-blue);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 400;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

.hero-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 50px;
    }

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0B60EA 0%, #2A7CF0 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(11,96,234,0.25);
    backdrop-filter: saturate(1.2);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background-color: transparent;
    color: var(--color-blue);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-blue);
    cursor: pointer;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ee5da6 0%, #f07bb7 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(238, 93, 166, 0.35), 0 0 0 4px rgba(238, 93, 166, 0.25);
}

.btn-secondary:hover {
    background-color: rgba(var(--color-blue-rgb), 0.1);
}


.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--color-white);
    animation: bounce 2s infinite;
    pointer-events: auto;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25) inset;
}

.btn-secondary:hover {
    background: rgba(238, 93, 166, 0.12);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(238, 93, 166, 0.25);
    border-color: rgba(238, 93, 166, 0.45);
}

.scroll-down i {
    margin-top: 8px;
    font-size: 1.5rem;
    color: #666666;
    animation: bounce 2s infinite;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--color-blue);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.social-link:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
    transform: translateY(-5px);
}


section {
    padding: 8rem 0;
    position: relative;
}

section h2 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.5px;
    color: var(--color-black);
}


.education {
    padding: 100px 20px;
    background-color: #f7f8f8;
}

.projects {
    padding: 100px 20px;
    background-color: #fafafa;
}

.education h2, .projects h2 {
    text-align: center;
    margin-bottom: 60px;
    font-weight: normal;
    color: var(--color-black);
}

.education-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    border: 1px solid rgba(var(--color-blue-rgb), 0.1);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-blue);
}

.education-icon {
    background-color: var(--color-light-blue);
    color: var(--color-blue);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.education-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.education-card:hover .education-icon {
    background-color: var(--color-blue);
    color: var(--color-white);
    transform: scale(1.1);
    border-color: rgba(var(--color-blue-rgb), 0.3);
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-black);
    font-weight: 700;
}


.projects {
    background-color: #f7f8f8;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}



.projects h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}
.projects-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-dark-gray);
    font-size: 1.1rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.project-card {
    background-color: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
    border: 2px solid rgba(238, 93, 166, 0.25);
    box-shadow: 0 0 0 3px rgba(238, 93, 166, 0.12);
}
.project-card:hover .project-img {
    border-color: rgba(238, 93, 166, 0.4);
    box-shadow: 0 0 0 4px rgba(238, 93, 166, 0.18);
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.3));
    z-index: 1;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.project-card:hover .project-img img {
    transform: scale(1.08);
}

.project-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin: 1.8rem 1.8rem 1rem;
    color: var(--color-black);
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}
.project-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background-color: #0B60EA;
    border-radius: 8px;
    padding: 6px;
    display: inline-block;
    border: none;
    box-shadow: none;
    
    filter: opacity(100);
}
.project-card:hover .project-logo {
    border: none;
    box-shadow: none;
}
.card-link-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #666666;
    background: rgba(102, 102, 102, 0.12);
    border-radius: 8px;
    padding: 6px;
    line-height: 1;
}
.project-card { cursor: pointer; }

.project-card:hover h3 {
    color: var(--color-black);
}

.project-card p {
    padding: 0 1.8rem;
    margin-bottom: 1.8rem;
    color: var(--color-dark-gray);
    flex-grow: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.8rem;
    margin-bottom: 1.8rem;
}

.project-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background-color: #eaeaea;
    color: #666666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .project-tag {
    background-color: #dcdcdc;
    color: #666666;
}

.btn {
    display: inline-block;
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    margin: 0 1.8rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--color-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-card .btn:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(11, 96, 234, 0.35), 0 0 0 4px rgba(11, 96, 234, 0.25);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(20) translate(-50%, -50%);
        opacity: 0;
    }
}


.skills {
    margin-top: 20px;
    background-color: #f7f8f8;
    padding: 10px 0;
}

.skills h2 {
    font-weight: normal;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-black);
}

.contact h2 {
    color: #141414;
}

.skills-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(5px, 1fr));
 }
 
 
 @media (max-width: 1200px) {
  .skill-card { padding: 0.3rem; min-height: 55px; }
  .skill-icon { width: 56px; height: 56px; font-size: 1.6rem; }
  .skill-card h3 { font-size: 1.1rem; }
  .skill-card p { font-size: 1rem; }
  .project-img { height: 180px; }
}
@media (max-width: 992px) {
   .skills-container { grid-template-columns: 1fr; gap: 0.7rem; }
   .skill-card { padding: 0.05rem; aspect-ratio: auto; min-height: 50px; }
   .skill-icon { width: 48px; height: 48px; font-size: 1.4rem; }
   .skill-card h3 { font-size: 1rem; }
   .skill-card p { font-size: 0.9rem; }
   .contact-card { padding: 4px; }
   .contact-icon { width: 40px; height: 40px; }
   .project-img { height: 160px; }
   html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
}
@media (max-width: 820px) {
  .skills-container { gap: 0.6rem; }
  .skill-card { padding: 0.02rem; min-height: 45px; }
  .skill-icon { width: 42px; height: 42px; font-size: 1.2rem; }
  .skill-card h3 { font-size: 0.9rem; }
  .skill-card p { font-size: 0.85rem; }
  .contact-card { padding: 10px; }
  .contact-icon { width: 36px; height: 36px; }
  .project-img { height: 140px; }
}
@media (max-width: 600px) {
  .skills-container { gap: 0.5rem; }
  .skill-card { padding: 0.01rem; min-height: 40px; }
  .skill-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .skill-card h3 { font-size: 0.85rem; }
  .skill-card p { font-size: 0.8rem; }
  .contact-card { padding: 8px; }
  .contact-icon { width: 32px; height: 32px; }
  .project-img { height: 120px; }
}
@media (max-width: 430px) {
  .skills-container { gap: 0.4rem; }
  .skill-card { padding: 0.01rem; min-height: 35px; }
  .skill-icon { width: 34px; height: 34px; font-size: 1rem; }
  .skill-card h3 { font-size: 0.8rem; }
  .skill-card p { font-size: 0.75rem; }
  .contact-card { padding: 6px; }
  .contact-icon { width: 28px; height: 28px; }
  .project-img { height: 100px; }
}

  .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }

  .modal-close-btn:hover {
    background: var(--color-secondary);
    box-shadow: var(--shadow-hover);
  }

  @media (max-width: 768px) {
    .modal-close-btn {
      top: 5px;
      right: 5px;
      width: 30px;
      height: 30px;
      font-size: 1.2rem;
    }
  }

  
 header, nav, .nav, .nav-toggle, .nav-links { display: none !important; }
 
 
.skill-card {
        background-color: var(--color-white);
        border-radius: 30px;
        padding: 0.5rem;
        border: 1px solid rgba(102, 102, 102, 0.3);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 4px 8px rgba(0, 0, 0, 0.1);
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;

        justify-content: center;
        text-align: center;
        backface-visibility: hidden;
        perspective: 1000px;
        transition: all 0.3s ease;
        border: 1px solid rgba(102, 102, 102, 0.3);
    }

    .skill-card:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 15px 35px rgba(238, 93, 166, 0.25);
        border-color: rgba(238, 93, 166, 0.3);
    }

    .skill-icon {
        width: 30px;
        height: 30px;
        background-color: #000000;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 0.4rem;
        color: #ffffff;
        font-size: 1rem;
    }

    .skill-card h3 {
        font-size: 0.7rem;
        font-weight: 700;
        margin-bottom: 0.3rem;
        color: var(--color-black);
    }

    .skill-card p {
        font-size: 0.6rem;
        color: #7d7d7d;
        line-height: 1.3;
    }

    
    .contact {
        background-color: #f7f8f8;
        padding: 10px 0;
    }

    .contact p {
        max-width: 600px;
        margin: 0 auto 2rem;
        font-size: 1.1rem;
    }

    .contact-links {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .contact-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--color-dark-gray);
    }

    .contact-link i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .contact-link:hover {
        color: var(--color-pink);
    }

    
    footer {
        background-color: #f7f8f8;
        padding: 2rem 1rem;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-links a {
        color: var(--color-white);
    }

    .footer-links a:hover {
        color: var(--color-pink);
    }

    .legal {
        text-align: center;
        font-size: 0.9rem;
    }

    .legal-link {
        color: #666666;
        margin-left: 1rem;
    }

    .legal-link:hover {
        color: var(--color-pink);
    }

    
    
    
    @media (max-width: 1024px) {
        nav {
            padding: 1rem 3%;
        }
        
        .hero h1 {
            font-size: 3.5rem;
        }
        
        .hero p {
            font-size: 1.3rem;
        }
        
        .projects-container,
        .education-container {
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }
        
        .contact-container {
            gap: 20px;
        }
    }
    
    
    @media (max-width: 768px) {
        
        nav {
            padding: 1rem 4%;
            position: relative;
        }
        
        .nav-toggle {
            display: flex;
        }
        
        .nav-links {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            flex-direction: column;
            gap: 0;
            padding: 1rem 0;
            box-shadow: var(--shadow-md);
            transform: translateY(-100%);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
        }
        
        .nav-links.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }
        
        .nav-links li {
            width: 100%;
            text-align: center;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }
        
        .nav-links li:last-child {
            border-bottom: none;
        }
        
        .nav-links a {
            display: block;
            padding: 1rem 2rem;
            font-size: 1rem;
            color: var(--color-dark-gray);
            transition: all 0.3s ease;
        }
        
        .nav-links a:hover {
            background-color: var(--color-light-blue);
            color: var(--color-blue);
        }
        
        .nav-links a::after {
            display: none;
        }
        
        
        .hero {
            padding: 0 15px;
            min-height: 90vh;
        }
        
        .hero h1 {
            font-size: 2.8rem;
            margin-bottom: 15px;
            line-height: 1.1;
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
        }
        
        .hero-buttons {
            flex-direction: column;
            align-items: center;
            gap: 15px;
            margin-bottom: 40px;
        }
        
        .btn-primary,
        .btn-secondary {
            width: 100%;
            max-width: 280px;
            text-align: center;
            padding: 12px 24px;
            font-size: 0.95rem;
        }
        
        
        section {
            padding: 60px 15px;
        }
        
        section h2 {
            margin-bottom: 30px;
        }
        
        
        .projects-container,
        .education-container {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        .project-card,
        .education-card {
            width: 100%;
            max-width: 100%;
        }
        
        
        .contact-container {
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }
        
        .contact-card {
            width: 100%;
            max-width: 250px;
        }
        
        
        .modal-content {
            width: 95%;
            max-width: 95%;
            margin: 2% auto;
            max-height: 96vh;
            overflow-y: auto;
        }
        
        .modal-header {
            padding: 15px 20px;
        }
        
        .modal-header h3 {
            font-size: 1.3rem;
        }
        
        .modal-body {
            padding: 20px;
        }
        
        .modal-nav {
            gap: 8px;
            min-width: 40px;
            height: 40px;
            padding: 10px;
            font-size: 1rem;
            
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .modal-nav:active {
            transform: scale(0.95);
        }
        
        
        .modal-nav::before {
            content: '';
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            z-index: -1;
        }
        
        
        .carousel-container {
            margin: 15px 0;
        }
        
        .carousel-image {
            max-height: 250px;
        }
        
        
        .social-links {
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .social-link {
            width: 40px;
            height: 40px;
        }
        
        
        footer {
            padding: 30px 15px;
        }
        
        .footer-content {
            flex-direction: column;
            gap: 20px;
            text-align: center;
        }
        
        .footer-links {
            gap: 15px;
        }
    }
    
    
    @media (max-width: 480px) {
        
        nav {
            flex-direction: column;
            gap: 1rem;
            padding: 0.8rem 3%;
        }
        
        .logo h1 {
            font-size: 1.3rem;
        }
        
        .nav-links {
            gap: 1rem;
            width: 100%;
            justify-content: center;
        }
        
        
        .hero h1 {
            font-size: 2.2rem;
            line-height: 1.1;
        }
        
        .hero p {
            font-size: 1.1rem;
        }
        
        .btn-primary,
        .btn-secondary {
            padding: 10px 20px;
            font-size: 0.9rem;
        }
        
        
        section {
            padding: 50px 10px;
        }
        
        
        
        
        .modal-content {
            width: 98%;
            margin: 1% auto;
            border-radius: 8px;
        }
        
        .modal-header {
            padding: 12px 15px;
        }
        
        .modal-header h3 {
            font-size: 1.1rem;
        }
        
        .modal-body {
            padding: 15px;
        }
        
        .modal-nav {
            min-width: 30px;
            height: 30px;
            padding: 6px;
            font-size: 0.8rem;
        }
        
        
        .contact-card {
            padding: 10px;
        }
        
        .contact-icon {
            width: 45px;
            height: 45px;
            font-size: 1.2rem;
        }
        
        
        .legal-page {
            padding: 100px 15px 40px;
        }
        
        .legal-page .container h1 {
            font-size: 1.5rem;
        }
        
        
        
        .legal-section h3 {
            font-size: 1.1rem;
        }
    }

    
    @media (min-width: 1400px) {
        nav {
            padding: 1.2rem 8%;
        }
        
        .hero h1 {
            font-size: 4.5rem;
        }
        
        .hero p {
            font-size: 1.6rem;
        }
        
        section {
            padding: 100px 8%;
        }
        
        .projects-container,
        .education-container {
            grid-template-columns: repeat(3, 1fr);
            gap: 3rem;
        }
    }
    
    body {
        background-color: var(--color-black);
        color: var(--color-white);
    }

    .projects {
        background-color: #fafafa;
        padding: 30px 20px 25px;
    }

    .projects h2 {
        color: #141414;
    }
    
    .project-logo {
        height: 24px;
        width: auto;
        max-height: 1.6em;
        vertical-align: middle;
    }

    .project-card {
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 30px;
    }

    .project-card h3 {
        color: #141414;
    }

    .project-card p {
        color: #666666;
    }

    .education {
        background-color: var(--color-black);
    }

    .education h2 {
        color: var(--color-white);
    }

    .education-card {
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .education-card h3 {
        color: var(--color-white);
    }

    .education-card p {
        color: var(--color-dark-gray);
    }

    footer {
        background-color: #f7f8f8;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        color: #202020;
    }
    .contact {
        background-color: #f7f8f8;
        padding: 10px 20px;
        color: var(--color-white);
    }

    .contact h2 {
        text-align: center;
        margin-bottom: 15px;
        color: #141414;
    }

    .contact-subtitle {
        text-align: center;
        margin-bottom: 50px;
        color: var(--color-dark-gray);
        font-weight: normal;
        font-size: 1.1rem;
    }

    .contact-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .contact-card {
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 15px;
        text-align: center;
        width: 200px;
        transition: all 0.3s ease;

        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .contact-card:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 8px 24px rgba(238, 93, 166, 0.25);
        border-color: rgba(238, 93, 166, 0.5);
    }

    .contact-card:hover p {
        color: #ee5da6;
    }

    .contact-icon {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background-color: #ffffff;
        color: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        margin: 0 auto 15px;
        transition: all 0.3s ease;
    }

    .contact-card:hover .contact-icon {
        transform: scale(1.1);
    }

    
    .contact-card:nth-child(1) .contact-icon { 
        background-color: #000000;
        color: #ffffff;
    }
    .contact-card:nth-child(2) .contact-icon { 
        background-color: #000000;
        color: #ffffff;
    }
    .contact-card:nth-child(3) .contact-icon { 
        background-color: #000000;
        color: #ffffff;
    }
    
    .contact-icon img {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: block;
    }

    .contact-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: #141414;
    }

    .contact-card p {
        color: #666666;
        font-size: 0.9rem;
    }

    .contact-card a {
        color: var(--color-blue);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .contact-card a:hover {
        color: var(--color-pink);
    }

    .contact-button {
        margin-top: 40px;
        text-align: center;
    }

    .btn-message {
        display: inline-block;
        padding: 14px 28px;
        background: linear-gradient(135deg, #0B60EA 0%, #2A7CF0 100%);
        color: #ffffff;
        text-decoration: none;
        border-radius: 9999px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255,255,255,0.15);
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(11,96,234,0.25);
    }

    .btn-message:hover {
        background: linear-gradient(135deg, #ee5da6 0%, #f07bb7 100%);
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 10px 24px rgba(238, 93, 166, 0.35), 0 0 0 4px rgba(238, 93, 166, 0.25);
    }

    .separator {
        height: 1px;
        background-color: #e9ecee;
        margin: 0 auto;
        width: 100%;
    }

    
    .legal-page {
        padding: 120px 20px 60px;
        background-color: #fafafa;
    }

    .legal-page .container {
        max-width: 900px;
        margin: 0 auto;
    }

    .legal-page h1 {
        font-size: 2.5rem;
        margin-bottom: 40px;
        color: var(--color-black);
        text-align: center;
    }

    .legal-section {
        margin-bottom: 40px;
    }

    .legal-section h2 {
        margin-bottom: 15px;
        color: var(--color-black);
    }

    .legal-section h3 {
        font-size: 1.2rem;
        margin: 15px 0 10px;
    }

    .legal-section p, .legal-section ul {
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .legal-section ul {
        padding-left: 20px;
    }

    .legal-section li {
        margin-bottom: 8px;
    }

    .back-link {
        text-align: center;
        margin-top: 50px;
        margin-bottom: 30px;
    }
    
    .legal-page .container h1 {
      margin-top: 0 !important;
      padding-top: 0 !important;
      font-size: 1.75rem;
      line-height: 1.2;
    }