/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #0a66c2;
    --dark-bg: #1f2937;
    --darker-bg: #111827;
    --light-bg: #f9fafb;
    --gray-bg: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 8rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Skills Section */
.skills {
    background-color: var(--light-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.skill-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.skill-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* Vision Section */
.vision {
    background-color: var(--white);
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
}

.vision-statement {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

.goals {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.goal-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.goal-icon {
    font-size: 1.5rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title::after {
    background: var(--white);
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}



.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-text strong {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.contact-text span {
    font-size: 0.95rem;
    color: var(--text-light);
}

.email-link .contact-icon {
    color: var(--primary-color);
}

.linkedin-link .contact-icon {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Back-to-top button */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--white);
    color: var(--primary-color);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(37, 99, 235, 0.08);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(.2, .9, .2, 1);
    z-index: 9999;
}

.back-to-top:focus {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 3px;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Slightly larger on touch devices */
@media (hover: none) and (pointer: coarse) {
    .back-to-top {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Respect narrow viewports (avoid covering content) */
@media (max-width: 420px) {
    .back-to-top {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 44px;
        height: 44px;
    }
}

footer a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .achievements {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .achievement-number {
        font-size: 2rem;
    }
}