/* Global Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

nav ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 1.6rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #22d3ee;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #22d3ee;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.home-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 0 2rem;
}

.home h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home p {
    font-size: 2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* About Section */
#about {
    min-height: 100vh;
    padding: 120px 10%;
    background-color: #ffffff;
    text-align: center;
}

#about h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #0f172a;
}

.about-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 50px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 15px;
}

.about-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.about-item p {
    font-size: 2rem;
    color: #475569;
    font-weight: 500;
    text-align: left;
}

.about-description {
    font-size: 1.7rem;
    color: #64748b;
    line-height: 1.9;
    margin-top: 10px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

#about h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-top: 80px;
    margin-bottom: 50px;
    color: #0f172a;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    list-style: none;
    max-width: 1100px;
    margin: 0 auto;
}

.skills-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background: #ffffff;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.skills-list li:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(34, 211, 238, 0.2);
    border-color: #22d3ee;
}

.skills-list img {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.skill-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

/* Projects Section */
#projects {
    min-height: 100vh;
    padding: 120px 10%;
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
}

#projects h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #0f172a;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.15);
}

.project-img {
    width: 40%;
    min-height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

.project-card:nth-child(2) .project-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-info {
    padding: 40px;
    flex: 1;
}

.project-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.project-info p {
    font-size: 1.7rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-info a {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.6rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 25px;
}

.project-info a:hover {
    color: #0891b2;
}

.project-info h4 {
    font-size: 1.8rem;
    color: #475569;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Contact & Footer Section */
#contact-footer {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

#contact {
    padding: 100px 10%;
    text-align: center;
}

#contact h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #0f172a;
}

#contact p {
    font-size: 2rem;
    color: #64748b;
    margin-bottom: 50px;
}

#contact-icon {
    display: flex;
    justify-content: center;
    gap: 50px;
    list-style: none;
    flex-wrap: wrap;
}

#contact-icon li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: #f8fafc;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

#contact-icon li a:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: #22d3ee;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

#contact-icon img {
    width: 55px;
    height: 55px;
}

footer {
    padding: 30px;
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    nav {
        padding: 0 3%;
    }

    nav ul {
        gap: 1.5rem;
    }

    .home h1 {
        font-size: 4rem;
    }

    .skills-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .project-card {
        flex-direction: column;
    }

    .project-img {
        width: 100%;
        min-height: 250px;
    }

    .about-item {
        flex-direction: column;
        text-align: center;
    }

    .about-item p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav ul li a {
        font-size: 1.4rem;
    }

    .home h1 {
        font-size: 3.5rem;
    }

    #about h1,
    #projects h1,
    #contact h1 {
        font-size: 3.5rem;
    }
}