/* =========================================================
   JADE PORTFOLIO – CSS STARTER TEMPLATE
   ========================================================= */

/* 
TABLE OF CONTENTS
    1. CSS Reset (Margin, Padding, Box-Sizing)
    2. Root Variables (Color, Font, Spacing)
    3. Base Styles (Body, Typography, Links, Images)
    4. Layout (Container, Section Spacing)
    5. Header/Navigation (Styles, Responsive)
    6. Section - Hero Section
    7. Section - Projects Section
    8. Section - Skills Section
    9. Section - About Section
   10. Section - Contact Section
   11. Buttons (Primary, Secondary, Small)
   12. Footer (Styles, Responsive)
   13. Media Queries (Responsive Adjustments)
*/


/* =========================================================
    1. CSS RESET (MARGIN, PADDING, BOX-SIZING)
   ========================================================= */
* {
    margin: 0;              /* Remove default margin */
    padding: 0;             /* Remove default spacing */
    box-sizing: border-box; /* Include padding/border in width */
}

/* =========================================================
    2. ROOT VARIABLES (COLOR, FONT, SPACING)
   ========================================================= */
:root {
    /* Color */
    --color-primary: #3498db;   /* Blue */
    --color-secondary: #2ecc71; /* Green */
    --color-accent: #e74c3c;    /* Red */
    
    /* Text Color */
    --text-dark: #333333;       /* Dark Gray */
    --text-light: #666666;      /* Light Gray */
    --text-muted: #999999;      /* Muted Gray */

    /* Background Color */
    --bg-dark: #2c3e50;         /* Dark Blue Gray */
    --bg-light: #f8f9fa;        /* Light Gray */
    --bg-white: #ffffff;        /* White */

    /* Button Colors */
    --btn-primary: var(--color-primary);    /* Blue */
    --btn-primary-hover: #2980b9;         /* Darker Blue */
    --btn-secondary: #95a5a6;             /* Gray */
    --btn-secondary-hover: #7f8c8d;       /* Darker Gray */

    /* Font */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Spacing */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
}

/* =========================================================
    3. BASE STYLES (BODY, TYPOGRAPHY, LINKS, LISTS, IMAGES)
   ========================================================= */
/* Base styles for the entire document */
body { 
    font-family: var(--font-main);      /* Font family */
    color: var(--text-dark);            /* Text color */
    background-color: var(--bg-white);  /* Background color */
    line-height: 1.6;                   /* Line height */
    min-height: 100vh;                  /* Minimum height */
}

/* Typography styles for headings */
h1, h2, h3, h4 {
    font-weight: 700;                   /* Bold font weight */
    line-height: 1.2;                   /* Tighter line height */
    margin-bottom: var(--spacing-md);   /* Spacing below headings */
    color: var(--text-dark);            /* Color */
}
h1 {font-size: 2.5rem;}     /* 40px - Title size: Main title */
h2 {font-size: 2rem;}       /* 32px - Title size: Section titles */
h3 {font-size: 1.5rem;}     /* 24px - Title size: Subsection titles */

/* Typography styles for paragraphs */
p {
    margin-bottom: var(--spacing-md);   /* Spacing below paragraphs */
    line-height: 1.6;                   /* Line height */
}

/* Links (anchor tags) */
a {
    color: var(--color-primary);        /* Link color */
    text-decoration: none;              /* Remove underline */
    transition: color 0.3s ease;        /* Smooth color change on hover */
}
a:hover {color: var(--color-secondary);}    /* Hover color */

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-md);   /* Spacing below lists */
    padding-left: var(--spacing-lg);    /* Indent lists */
}
li {margin-bottom: var(--spacing-sm);}  /* Spacing between list items */

/* Images */
img {
    max-width: 100%;        /* Responsive images */
    height: auto;           /* No Stretching */
    display: block;         /* Remove bottom space */
}

/* =========================================================
    4. LAYOUT (CONTAINER, SECTION SPACING)
   ========================================================= */
/* Spacing: Top/Bottom, Left/Right */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
}

/* =========================================================
    5. HEADER/NAVIGATION (STYLES, RESPONSIVE)
   ========================================================= */
/* Header */
header {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: var(--spacing-md) 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
    color: var(--bg-white);
}

header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Navigation */
nav {
    margin-bottom: var(--spacing-md);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--color-primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* =========================================================
    6. SECTION - HERO SECTION
   ========================================================= */
/* Hero Section */
#hero-section {
    background-color: var(--bg-white);
}

/* Container */
.hero-content {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Text Side: Left */
.hero-text {
    flex: 1;
}

.hero-intro {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.hero-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin: var(--spacing-md) 0;
}

.hero-tagline {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: var(--spacing-md);
}

/* Image Side: Right */
.hero-image {
    flex: 0 0 300px;
}

.hero-image img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =========================================================
    7. SECTION - PROJECT SECTION
   ========================================================= */
/* Projects Section */
#project-section {
    background-color: var(--bg-light);
}

#project-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Container */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Project Card */
.project-card {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-tech {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.project-links {
    display: flex;
    gap: var(--spacing-sm);
}

/* =========================================================
    8. SECTION - SKILLS SECTION
   ========================================================= */
/* Skills Section */
#skills-section {
    background-color: var(--bg-white);
}


#skills-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Container */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Skill Category */
.skill-category {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
}

.skill-category h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* =========================================================
    9. SECTION - ABOUT SECTION
   ========================================================= */
/* About Section */
#about-me-section {
    background-color: var(--bg-light);
}

#about-me-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Container */
.about-content {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Side: Left */
.about-image {
    flex: 0 0 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Text Side: Right */
.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* =========================================================
   10. SECTION - CONTACT SECTION
   ========================================================= */
/* Contact Section */
#contact-section {
    background-color: var(--bg-white);
    text-align: center;
}

#contact-section h2 {
    margin-bottom: var(--spacing-md);
}

/* Contact Intro */
.contact-intro {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Email Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-secondary);
    color: var(--bg-white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   11. BUTTONS (PRIMARY, SECONDARY, SMALL)
   ========================================================= */
/* Base Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

/* Primary Button */
.btn-primary {
    background-color: var(--btn-primary);
    color: var(--bg-white);
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--btn-secondary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
    transform: translateY(-2px);
}

/* Small Button */
.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background-color: var(--color-primary);
    color: var(--bg-white);
}

.btn-small:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
}

/* =========================================================
   12. FOOTER (STYLES, RESPONSIVE)
   ========================================================= */
footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    text-align: center;
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

footer p {
    margin: 0;
    color: var(--text-muted);
}

/* =========================================================
    13. MEDIA QUERIES (RESPONSIVE ADJUSTMENTS)
   ========================================================= */
/* Tablets and below (768px) */
@media (max-width: 768px) {
    
    /* Navigation - Stack vertically */
    nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    nav a {
        display: block;
        width: 100%;
    }
    
    /* Header - Smaller text */
    header h1 {
        font-size: 1.75rem;
    }
    
    /* Hero Section - Stack vertically */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        order: -1; /* Move image above text */
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* About Section - Stack vertically */
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Projects Grid - Single column */
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    /* Skills Grid - Single column */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Links - Stack vertically */
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    /* Notification - Adjust position */
    .copy-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}