/* Global Styles & Variables */
:root {
    /* Vibrant Palette */
    --primary-color: #2563eb;
    /* Bright Royal Blue */
    --secondary-color: #06b6d4;
    /* Cyan */
    --accent-color: #f472b6;
    /* Soft Pink/Magenta for gradients */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --card-bg: rgba(255, 255, 255, 0.85);
    /* Glassy white */
    --text-color: #1e293b;
    /* Slate 800 */
    --light-text: #475569;
    /* Slate 600 */
    --white: #ffffff;
    --gradient-main: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-text: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    --shadow-sm: 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);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f0f9ff;
    /* Very light cyan tint */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-image: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
.subtitle,
.logo {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 50px 0;
}

.bg-light {
    position: relative;
    /* Glassmorphism for section backgrounds */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: transparent;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--gradient-main);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    border: none;
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    color: var(--secondary-color);
    /* Fallback */
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-main);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 90px;
        height: calc(100vh - 90px);
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 30px;
        height: 3px;
        margin: 6px;
        background: var(--gradient-main);
        transition: var(--transition);
        border-radius: 2px;
    }
}

/* Hero Section */
.hero {
    min-height: auto;
    padding: 120px 0 60px 0;
    /* Top padding accounts for fixed header */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background blob decoration */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-color);
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--light-text);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 550px;
    color: var(--light-text);
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Organic shape */
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: morph 8s ease-in-out infinite;
    border: 5px solid rgba(255, 255, 255, 0.5);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding: 50px 20px;
    }

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

    .hero-content h1 {
        font-size: 3rem;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }
}

/* About Section */
.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 900px;
    text-align: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-text);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
    text-align: left;
}

.info-item {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

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

.info-item .label {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    z-index: -1;
    transition: var(--transition);
}

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

.skill-card:hover::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.skill-card i {
    font-size: 3.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback handled by some browsers, but transparent needed for clip */
    margin-bottom: 25px;
}

/* Fix for icons where text-fill-color isn't enough, sometimes simple color is safer for fontawesome if clip fails, 
   but let's try a workaround: wrap icon in span if needed, or just set color. */
.skill-card i {
    color: var(--primary-color);
    /* Fallback */
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.skill-card p {
    color: var(--light-text);
}

/* Certifications Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: rgba(37, 99, 235, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
    margin-left: auto;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 6px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -12px;
    top: 25px;
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.badge {
    display: inline-block;
    background: var(--gradient-main);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

@media (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
    }

    .timeline-dot {
        left: 22px;
    }
}

/* Education Card */
.education-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-main);
}

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

.edu-icon {
    width: 100px;
    height: 100px;
    background: rgba(37, 99, 235, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Contact Section */
.contact-item {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.contact-item i {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.contact-item a {
    color: var(--light-text);
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.95rem;
}