/* ============================================
   CSS Variables: Color System & Theme Control
   ============================================
   
   HOW TO CHANGE COLORS:
   - Light theme colors are in :root[data-theme="light"]
   - Dark theme colors are in :root[data-theme="dark"]
   - Modify gradient colors in .hero and other gradient classes
   - All colors use CSS variables for easy theming
*/

:root[data-theme="light"] {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --accent-primary: #3b82f6;      /* Cloud blue */
    --accent-secondary: #8b5cf6;   /* Purple */
    --accent-cyan: #06b6d4;         /* Cyan */
    
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.6);
    --bg-glass-hover: rgba(30, 41, 59, 0.8);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --accent-primary: #60a5fa;      /* Lighter blue for dark theme */
    --accent-secondary: #a78bfa;     /* Lighter purple */
    --accent-cyan: #22d3ee;          /* Lighter cyan */
    
    --border-color: rgba(51, 65, 85, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Base Styles & Reset
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Background gradient: Change colors here for page background */
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

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

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

/* Logo Container: Logo with icon and name */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--accent-primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background: var(--bg-glass-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Hero Section: Main landing area
   ============================================
   
   GRADIENT BACKGROUND:
   Change gradient colors in .hero::before
   Current: dark blue → violet → cyan
*/

.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Main gradient: Change these colors for hero background */
    background: linear-gradient(135deg, 
        #1e3a8a 0%,      /* Dark blue */
        #4c1d95 50%,     /* Violet */
        #0e7490 100%     /* Cyan */
    );
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons: CTA styles
   ============================================
   
   BUTTON COLORS:
   - .btn-primary: Uses gradient (change in background)
   - .btn-secondary: Glass effect with border
*/

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

.btn-primary {
    /* Primary button gradient: Change colors here */
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   About Section: About me
   ============================================
   
   TO CHANGE ABOUT TEXT:
   - Update .about-text paragraphs in HTML
*/

.about {
    background: var(--bg-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.about-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   Services Section: Glassmorphism cards
   ============================================
   
   GLASSMORPHISM EFFECT:
   - backdrop-filter: blur() creates glass effect
   - Semi-transparent background (--bg-glass)
   - Border with transparency
   
   TO ADD NEW SERVICE CARD:
   - Copy .service-card block in HTML
   - Cards auto-layout with CSS Grid
*/

.services {
    background: var(--bg-secondary);
}

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

.service-card {
    /* Glassmorphism effect */
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--bg-glass-hover);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.service-card-featured {
    /* Featured card: Highlight with gradient border */
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan)) 1;
    background: var(--bg-glass);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ============================================
   Why Me Section
   ============================================ */

.why-me {
    background: var(--bg-primary);
}

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

.why-me-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.why-me-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-secondary);
}

.why-me-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-me-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================
   
   TO CHANGE CONTACT INFO:
   - Update href and text in HTML contact links
*/

.contact {
    background: var(--bg-primary);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.contact-link:hover {
    transform: translateY(-4px);
    background: var(--bg-glass-hover);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.footer-logo-name {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================
   
   BREAKPOINTS:
   - Mobile: < 768px
   - Tablet: 768px - 1024px
   - Desktop: > 1024px
*/

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
        font-size: 0.9375rem;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid,
    .why-me-grid {
        grid-template-columns: 1fr;
    }

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

    section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-subtitle {
        font-size: 0.6875rem;
    }

    .logo-icon svg {
        width: 32px;
        height: 32px;
    }

    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

/* ============================================
   Print Styles (optional)
   ============================================ */

@media print {
    .header,
    .footer,
    .theme-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
