/* ============================================================================
   PORTFOLIO STYLESHEET
   =============================================================================
   Main stylesheet for the portfolio website.
   Organized by section with clear documentation.
   
   Table of Contents:
   1. CSS Variables (Design Tokens)
   2. Reset & Base Styles
   3. Navigation Bar
   4. General Styles
   5. SVG Separators
   6. Row Background Colors
   7. Portfolio Section
   8. Responsive Design
   
   Author: Jon Karlo Alonzo
   ============================================================================ */


/* =============================================================================
   1. CSS VARIABLES (DESIGN TOKENS)
   =============================================================================
   Centralized color palette and design tokens for consistent styling.
   ============================================================================= */

:root {
    /* ========================================================================
       CORE COLORS
       ==================================================================== */
    --primary-color: #1e40af;      /* Primary brand color - blue */
    --secondary-color: #60a5fa;    /* Secondary brand color - light blue */
    --accent-color: #f59e0b;       /* Accent color - amber */
    
    /* Aliases for convenience */
    --primary: var(--primary-color);
    --secondary: var(--secondary-color);
    --accent: var(--accent-color);

    /* ========================================================================
       TEXT COLORS
       ==================================================================== */
    --text-dark: #1f2937;          /* Primary text color */
    --text-light: #6b7280;         /* Secondary/muted text */
    --light: var(--text-light);
    --dark: var(--text-dark);

    /* ========================================================================
       BACKGROUND COLORS
       ==================================================================== */
    --bg-light: #f9fafb;           /* Light background */
    --bg-white: #ffffff;           /* White background */
    --body-bg: #d0dbe1;           /* Main body background */

    /* ========================================================================
       UTILITY COLORS
       ==================================================================== */
    --border-color: #e5e7eb;       /* Border/divider color */
    --white: #ffffff;              /* Pure white */
    --black: #000000;              /* Pure black */

    /* ========================================================================
       HERO SECTION COLORS
       ==================================================================== */
    --hero-1: #4a90e2;             /* Hero gradient start */
    --hero-2: #357abd;             /* Hero gradient middle */
    --hero-3: #2a5090;             /* Hero gradient end */
    --green-accent: #00B87B;       /* Green accent for hero */

    /* ========================================================================
       SKILL CARD COLORS
       ==================================================================== */
    --gray-medium: #475569;
    --sql-blue: #336791;
    --dark-blue: #1e3a5f;
    --python-blue: #3776ab;
    --powerbi-yellow: #f2cc1c;
    --dark-gray: #3a3a3a;
    --excel-green: #217346;
    --dark-green: #0f3d1f;
    --light-green: #1a5a2a;
    --tableau-orange: #e97627;
    --dark-orange: #3a2817;
    --light-orange: #5c3d2e;

    /* ========================================================================
       SERVICE SECTION COLORS
       ==================================================================== */
    --service-bg1: #e0e4e5;
    --service-bg2: #f2f6f9;
    --service-text: #444447;

    /* ========================================================================
       PORTFOLIO SECTION COLORS
       ==================================================================== */
    --portfolio-text: #444;
    --portfolio-span: #999;

    /* ========================================================================
       SHADOWS
       ==================================================================== */
    --shadow-green: rgba(0, 184, 123, 0.15);
    --shadow-black: rgba(0, 0, 0, 0.3);
    --shadow-text: rgba(0, 0, 0, 0.5);
    --shadow-card: rgba(0, 0, 0, 0.1);
    --shadow-card-hover: rgba(0, 0, 0, 0.2);

    /* ========================================================================
       HERO GRADIENTS
       ==================================================================== */
    --hero-gradient1: rgba(74, 144, 226, 0.8);
    --hero-gradient2: rgba(53, 122, 189, 0.8);
    --hero-gradient3: rgba(42, 80, 144, 0.8);
}


/* =============================================================================
   2. RESET & BASE STYLES
   =============================================================================
   Normalize browser defaults and set foundation styles.
   ============================================================================= */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enable smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Base HTML elements */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    border: none;
    outline: none;
}

/* Override Bootstrap defaults to prevent conflicts */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Container - centered wrapper with max-width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}



/* =============================================================================
   3. NAVIGATION BAR
   =============================================================================
   Sticky navigation with responsive hamburger menu.
   ============================================================================= */

/* Navbar container */
.custom-navbar {
    background: whitesmoke;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

/* Reset for nav element */
nav {
    margin: 0;
    padding: 0;
}

/* Navbar inner wrapper - full width container for navbar content */
.navbar-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    left: 0 !important;
    right: auto !important;
    position: relative !important;
}

/* Brand/Logo area - remove all margin/padding */
.nav-brand,
.nav-brand h1 {
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    font-size: 1.5rem;
}

/* Nav-right container - holds hamburger and nav menu */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--hero-gradient1);
}

/* Hamburger menu - Hidden on desktop, visible on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation states */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* =============================================================================
   4. GENERAL STYLES
   =============================================================================
   Typography, headings, and common elements.
   ============================================================================= */

/* Heading styles */
h1, h2 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: #2c3e50;
}

h1 {
    font-size: 45px;
    font-weight: 700;
}

h2 {
    font-size: 25px;
    font-weight: 400;
}

/* Utility title class */
.title {
    font-weight: bold;
}

/* Row - full-width section container */
.row {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: relative;
}



/* =============================================================================
   SCROLL MARGIN FOR SECTIONS (Fixes navbar covering content)
   =============================================================================
   When clicking nav links, this ensures sections don't get covered
   by the sticky navbar. Adjust the value if navbar height changes.
   ============================================================================= */

#home,
#about,
#skills,
#experience,
#projects,
#services,
#contact {
    scroll-margin-top: 80px;
}


/* =============================================================================
   5. SVG SEPARATORS
   =============================================================================
   Decorative wave/curve separators between sections.
   ============================================================================= */

.svg-separator {
    display: block;
    background: 0 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9;
    -webkit-transform: translateY(-100%) translateY(2px);
    transform: translateY(-100%) translateY(2px);
    width: 100%;
}

/* Separator positioning variants */
.svg-separator.bottom {
    top: auto;
    bottom: 0;
}

.svg-separator.top {
    transform: translateY(-100%) translateY(2px) scale(1, 1);
    transform-origin: top;
}

.svg-separator.bottom-flip {
    transform: translateY(0%) translateY(-2px) scale(-1, -1);
    transform-origin: bottom;
}

/* Individual separator variants (numbered classes match HTML data) */
.svg-separator.sep2,
.svg-separator.sep3,
.svg-separator.sep5,
.svg-separator.sep6,
.svg-separator.sep7,
.svg-separator.sep8,
.svg-separator.sep10,
.svg-separator.sep11,
.svg-separator.sep12 {
    transform: translateY(-100%) translateY(2px) scale(1, 1);
    transform-origin: top;
}

.svg-separator.sep9 {
    transform: translateY(0%) translateY(-2px) scale(-1, -1);
    transform-origin: bottom;
}

/* Certificates top separator */
.svg-separator.sep-certificates-top {
    transform: translateY(-100%) translateY(2px) scale(1, 1);
    transform-origin: top;
}

/* Remove 7.5px padding from sep3 */
.svg-separator.sep3 {
    padding: 0;
}


/* =============================================================================
   6. ROW BACKGROUND COLORS
   =============================================================================
   Color utility classes for section backgrounds.
   ============================================================================= */

/* Services section - full viewport height */
#services.row {
    min-height: 100vh;
    background-color: #6c7a89;
}

/* Color utility classes */
.green { 
    background-color: #03a678; 
}

.light-grey { 
    background-color: #ecf0f1; 
}

.light-grey2 { 
    background-color: #ecf0f1; 
}

.dark-blue { 
    background-color: #22313f; 
}

/* Title color adjustment for dark backgrounds */
.row.dark-blue .title {
    color: var(--white);
}

.black { 
    background-color: #333; 
}


/* =============================================================================
   7. PORTFOLIO SECTION
   =============================================================================
   Portfolio grid and item styling.
   ============================================================================= */

#portfolio {
    clear: both;
    margin-top: 50px;
}


/* =============================================================================
   8. RESPONSIVE DESIGN
   =============================================================================
   Mobile and tablet breakpoints.
   ============================================================================= */

/* Tablet breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* Adjust navbar wrapper padding for mobile */
    .navbar-wrapper {
        padding: 0.75rem 1rem !important;
    }

    /* Smaller brand text */
    .nav-brand h1 {
        font-size: 1.2rem;
    }

    /* Nav-right container on mobile */
    .nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex;
    }

    /* Mobile navigation menu - slides in from right */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding-top: 60px;
    }

    /* Active state - menu slides in */
    .nav-menu.active {
        right: 0;
    }

    /* Menu item spacing */
    .nav-menu li {
        margin: 0.5rem 0;
    }

    /* Larger touch targets for mobile */
    .nav-menu a {
        font-size: 1.2rem;
    }
}

/* Small mobile breakpoint (max-width: 480px) */
@media (max-width: 480px) {
    /* Even smaller brand text */
    .nav-brand h1 {
        font-size: 1rem;
    }

    /* Tighten menu spacing */
    .nav-menu {
        gap: 0.7rem;
        font-size: 0.8rem;
    }
}

