:root {
    /* Color Palette */
    --primary-color: #2575fc; /* Blue */
    --secondary-color: #6a11cb; /* Purple */
    --text-dark: #1a2a3a;
    --text-light: #555;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: #333;
    line-height: 1.6;
}

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

/* --- Navigation Bar --- */
.navbar {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 1rem 0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 40px;
}

.logo {
    color: var(--bg-white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease-in-out;
    letter-spacing: 0.8px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 4px;
    background-color: var(--bg-white);
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.navbar.open .hamburger .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar.open .hamburger .bar:nth-child(2) {
    opacity: 0;
}

.navbar.open .hamburger .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- PRIMARY BUTTON (.btn-primary) --- */
.btn-primary {
    display: inline-block;
    /* Gradient Background for Primary Buttons */
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-white);
    padding: 15px 30px;
    border-radius: 50px; /* Pill Shape */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Animated by JS/CSS */
    border: none;
}

.btn-primary:hover {
    /* Slightly lighter gradient on hover */
    background: linear-gradient(45deg, #6a11cb 10%, #4690ff 90%);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* --- SECONDARY BUTTON (.btn-secondary) --- */
.btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background-color: #530a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #555;
    background-color: var(--bg-white);
    border-bottom: 1px solid #eee;
    padding: 100px 20px;
    box-sizing: border-box;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.section-description {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
    text-align: center;
}

/* Section Specific Backgrounds */
#home { background: linear-gradient(135deg, #e0f2f7 0%, #c1e4f4 100%); min-height: calc(100vh - 80px); }
#profile { background-color: #f0e6ff; }
#services { background-color: #e6ffe6; }
#about { background-color: #fff0e6; }
#contact { background-color: #ffe6f7; }

/* --- HOME/HERO Section --- */
.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--bg-white);
    box-shadow: var(--shadow-medium);
    margin-bottom: 30px;
    animation: fadeInScale 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8em;
    opacity: 0;
}

.hero-section .tagline {
    font-size: 1.5em;
    opacity: 0;
}


/* --- PROFILE Section --- */
.profile-content .lead {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 600;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.detail-item {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.detail-item i {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}


/* --- SERVICES Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    opacity: 0; 
}

.service-item.visible {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: var(--animation-delay);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-item .icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

/* Define staggered animation delays for services */
.services-grid .service-item:nth-child(1) { --animation-delay: 0.3s; }
.services-grid .service-item:nth-child(2) { --animation-delay: 0.5s; }
.services-grid .service-item:nth-child(3) { --animation-delay: 0.7s; }
.services-grid .service-item:nth-child(4) { --animation-delay: 0.9s; }


/* --- ABOUT Section --- */
.about-section .about-content {
    max-width: 800px;
    margin: 30px auto 50px auto;
    padding: 0 20px;
    text-align: left;
}

.about-section .lead {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-dark);
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

/* --- CONTACT Section STYLING (The Enhanced Buttons) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Contact Cards */
.social-links, .email-me {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.social-links:hover, .email-me:hover {
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.social-links h3, .email-me h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark); 
    font-size: 2em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

/* Gradient Underline for Headers */
.social-links h3::after, .email-me h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

/* 1. Social Icon Redesign (Pill Buttons with Icons) */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    
    background-color: var(--bg-light); 
    color: var(--text-dark);
    text-decoration: none;
    padding: 18px 25px;
    border-radius: 50px; 
    font-size: 1.1em;
    font-weight: 700;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-icon i {
    font-size: 1.6em;
    margin-right: 15px;
    color: var(--secondary-color); 
    transition: color 0.4s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--bg-white); 
}
.social-icon:hover i {
    color: var(--bg-white); 
}

/* Branded Facebook Styling */
.facebook-icon i {
    color: #3b5998;
}
.facebook-icon:hover {
    background-color: #3b5998; 
    border-color: #3b5998;
}

/* Branded Instagram Styling (Gradient) */
.instagram-icon i {
    /* Instagram Gradient for icon */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: initial;
}

.instagram-icon:hover {
    /* Instagram Gradient for button background */
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #991f8c);
    border-color: #cc2366;
}
.instagram-icon:hover i {
    color: var(--bg-white); 
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}


/* 2. Email Button (.email-btn) (Custom Gradient) */
.email-me p {
    font-size: 1em;
    color: #666;
    margin-bottom: 25px;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    
    /* Inherits gradient and hover from .btn-primary */
    opacity: 1; /* Override the default btn-primary opacity:0 for this placement */
}

.email-btn i {
    margin-right: 10px;
    font-size: 1.2em;
}

.email-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 15px;
    line-height: 1.5;
}


/* --- FOOTER --- */
.footer {
    background: linear-gradient(90deg, var(--text-dark) 0%, #2c3e50 100%);
    color: #f4f4f4;
    padding: 60px 20px;
    font-size: 0.9em;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 8px;
}

.footer-nav a {
    color: #b0c4de; 
    text-decoration: none;
    font-size: 1em;
    padding: 5px 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color); 
    padding-left: 5px; 
}


/* --- Animations --- */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Apply animations with delays for entrance effect */
.hero-section h1 { animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; animation-delay: 0.3s; }
.hero-section .tagline { animation: fadeIn 1s ease-out forwards; animation-delay: 0.6s; }
.hero-section .btn-primary { animation: fadeIn 1s ease-out forwards; animation-delay: 0.9s; }


/* --- Mobile Responsiveness (Max 768px) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 20px;
    }
    
    .navbar nav {
        position: fixed;
        top: 0;
        left: 100%; 
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
        margin: 0;
    }

    .navbar.open nav {
        left: 30%; 
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0 20px;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
    }

    .nav-links li a {
        font-size: 1.2em;
        padding: 0.5rem 0;
        display: block;
        color: #fff;
    }

    .nav-links li a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-section h1 {
        font-size: 2.8em;
    }

    .hero-section .tagline {
        font-size: 1.2em;
    }

    .section {
        min-height: auto;
        padding: 80px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }

    /* Contact Section Mobile Adjustments */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-icon, .email-btn {
        max-width: 100%; 
    }

    .social-links, .email-me {
        padding: 25px 20px;
    }

    .social-links h3, .email-me h3 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .social-links h3::after, .email-me h3::after {
        width: 50px;
    }


    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav ul {
        align-items: center;
    }
}

/* --- Small Mobile Devices (Max 480px) --- */
@media (max-width: 480px) {
    .navbar.open nav {
        left: 15%; 
    }
    .hero-section h1 {
        font-size: 2.2em;
    }
    .hero-section .tagline {
        font-size: 1em;
    }
}
