/* style.css */
:root {
    --primary-color: #87CEEB;
    --secondary-color: #5F9EA0;
    --background-color: #F0F8FF;
    --text-color: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body.loaded {
    opacity: 1;
}

header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

section {
    padding: 4rem 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Common Card Styles */
.skill-item, .project-card, .education li, .contact form {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.skill-item:hover, .project-card:hover {
    transform: translateY(-5px);
}

/* Skills Section */
.skills {
    background: rgba(135,206,235,0.05);
    border-radius: 15px;
    margin: 3rem auto;
    padding: 3rem 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.skill-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.skill-item:hover i {
    color: var(--primary-color);
    transform: rotate(360deg) scale(1.1);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.project-card {
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
}

/* Education Section */
.education ul {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 800px;
}

.education li {
    margin: 1rem 0;
    padding: 1.5rem;
    text-align: left;
    position: relative;
}

.education li::before {
    content: "🎓";
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
}

/* Contact Section */
.contact form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Resume Download Button */
.resume-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.resume-download button {
    animation: bounce 2s infinite;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .animation-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .resume-download {
        bottom: 20px;
        right: 20px;
    }

    .resume-download button {
        padding: 0.8rem 1.5rem;
    }

    .education li::before {
        left: -20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
