/* ==========================================================================
   HERO SECTION STYLES
   ==========================================================================
   
   Table of Contents:
   ------------------
   1. CSS Variables    - Color palette and design tokens
   2. Base Styles      - Reset and global styles
   3. Hero Section     - Main hero container
   4. Hero Content    - Layout and flexbox structure
   5. Text Components  - Name, degree, subtitle, typing text
   6. Buttons          - CTA and social media buttons
   7. Hero Image       - Profile image with animation
   8. Responsive       - Mobile, tablet, laptop, and 4K breakpoints
   
   Author: Jon Karlo Alonzo
   Last Updated: 2025
   ========================================================================== */


/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
:root {
    /* Primary Colors */
    --blue-accent: #a8d5ff;      /* Light blue highlight */
    --blue-dark: #2a5090;        /* Dark blue gradient */
    --blue-medium: #357abd;      /* Medium blue gradient */
    --blue-light: #4a90e2;        /* Light blue gradient */
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f0f0f0;
    --gray-medium: #e8e8e8;
    --gray-dark: #333333;
    
    /* Social Brand Colors */
    --facebook: #1877F2;
    --github: #333333;
    --linkedin: #0A66C2;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 80px;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-sm: 0.95rem;
    --font-size-md: 1.1rem;
    --font-size-lg: 1.2rem;
    --font-size-xl: 2.5rem;
    
    /* Effects */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 25px rgba(168, 213, 255, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 50px;
}


/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: var(--font-family);
}


/* ==========================================================================
   3. HERO SECTION
   ==========================================================================
   Full-screen hero with gradient overlay and background image
   Uses fixed attachment for parallax-like effect */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.85) 0%, 
        rgba(53, 122, 189, 0.85) 50%, 
        rgba(42, 80, 144, 0.85) 100%
    ), url('../img/buildings.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px 0;
    margin-top: 0;
}


/* ==========================================================================
   4. HERO CONTENT
   ==========================================================================
   Flexbox container that holds text and image side by side */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}


/* ==========================================================================
   5. TEXT COMPONENTS
   ========================================================================== */

/* Main text container */
.hero-text {
    flex: 1;
    max-width: 700px;
}

/* Name heading */
.hero-text h2 {
    color: var(--white);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

/* Degree/subtitle */
.hero-degree {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Description paragraph */
.hero-description {
    color: var(--white);
}

/* Description paragraph */
.hero-subtitle {
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

/* Typing animation container */
.typing-text {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--white);
    min-height: 1.5em;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--spacing-md);
}

.typing-text span {
    display: inline-block;
}

/* Typed.js cursor */
.typed-cursor {
    font-weight: 700;
    color: var(--white);
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

/* ----- Download CV Button ----- */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    color: var(--black);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.hero-btn:hover {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-medium) 100%);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-accent);
    text-decoration: none;
}

.hero-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(168, 213, 255, 0.3);
}


/* ----- Social Links Container ----- */
.social-links {
    margin-bottom: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}


/* ----- Social Button Base ----- */
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: var(--font-size-sm);
    color: var(--white);
}

/* Social platform colors */
.social-btn-facebook { background-color: var(--facebook); }
.social-btn-github   { background-color: var(--github); }
.social-btn-linkedin { background-color: var(--linkedin); }

/* Unified hover state for all social buttons */
.social-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--white);
}

/* Ensure icons remain white on hover */
.social-btn:hover i,
.social-btn:hover i::before {
    color: var(--white) !important;
}


/* ==========================================================================
   7. HERO IMAGE
   ==========================================================================
   Profile image with floating animation */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(var(--shadow-lg));
    animation: float 3s ease-in-out infinite;
}

/* Floating animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}


/* ==========================================================================
   8. RESPONSIVE STYLES
   ========================================================================== */

/* ----- Mobile (< 768px) ----- */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 100px 20px 60px 20px;
        display: flex;
        align-items: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .hero-image-container {
        order: -1;
        margin-bottom: 20px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.50rem;
    }

    .hero-image {
        width: 300px;
    }

    .social-links {
        justify-content: center;
    }
}


/* ----- Tablet (769px - 1024px) ----- */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        min-height: 100vh;
        padding: 50px 0 80px 0;
    }

    .hero-content {
        gap: 40px;
        padding: 0 30px;
    }

    .hero-text {
        text-align: left;
    }

    .hero-text h2 {
        font-size: 2.2rem;
        text-align: left;
    }

    .hero-image {
        max-width: 300px;
    }
    
    /* Better spacing for buttons on tablet */
    .social-links {
        margin-bottom: 20px;
    }
    
    .hero-btn {
        margin-top: 10px;
    }
}


/* ----- Laptop/Desktop (> 1200px) ----- */
@media (min-width: 1201px) {
    .hero-content {
        gap: var(--spacing-xl);
        padding: 0 40px;
    }

    .hero-text {
        text-align: left !important;
    }

    .hero-text h2 {
        font-size: var(--font-size-xl);
        text-align: left !important;
    }
}


/* ----- 4K Resolution (> 3840px) ----- */
@media (min-width: 3840px) {
    .hero-content {
        max-width: 1200px;
    }

    .hero-text h2 {
        font-size: 4rem;
        
    }
}


