/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Body - Controls: background color, default text color, font family */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0b0b0d; /* Dark background */
    color: #e0e0e0; /* Light text color */
    line-height: 1.7;
    font-size: 17px; /* Base font size - increased from default */
}

* {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Headings - Controls: font family, weight, color, spacing */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #d1dae4;
    letter-spacing: -0.02em;
}

/* Links - Controls: text decoration, color, transitions */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   NAVIGATION
   Controls: position, background, border, layout
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.nav.scrolled {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0ea5e9;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

/* Navigation Links - Controls: font size, weight, color */
.nav-link {
    font-size: 1.05rem; 
    font-weight: 600; 
    color: #a0a0a0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0ea5e9;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   Controls: layout, spacing, background
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem 4rem;
    position: relative;
    background: transparent;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #adc8e3ec;
    letter-spacing: -0.01em;
}

/* Hero Subtitle - Controls: font size, weight, color */
.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.4rem); 
    font-weight: 600; 
    color: #31a0d8ea;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* Hero Tagline - Controls: font size, weight, color */
.hero-tagline {
    font-size: clamp(1.15rem, 2vw, 1.4rem); /* Increased */
    color: #d0d0d0;
    margin-bottom: 3rem;
    font-weight: 500; /* Increased from 400 */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0ea5e9;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #606060;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 1px;
    height: 60px;
    background: linear-gradient(0deg, #0ea5e9 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ============================================
   SECTIONS
   Controls: padding, max-width, titles
   ============================================ */

section {
    padding: 6rem 2rem;
}

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

/* Section Titles - Controls: font size, weight, spacing, color */
.section-title {
    font-size: clamp(2.4rem, 5vw, 3.5rem); /* Increased */
    font-weight: 800; /* Increased from 700 */
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
}

/* ============================================
   ABOUT SECTION
   Controls: text size, weight, color, spacing
   ============================================ */

.about {
    background: transparent;
}

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

/* About Text - Controls: font size, line height, color */
.about-content p {
    font-size: 1.5rem; /* Increased from 1.4rem */
    line-height: 2;
    color: #d1dee4;
    font-weight: 500; /* Added weight */
}

/* ============================================
   YOU MIGHT NEED ME IF SECTION
   Controls: bullet points, colors, spacing
   ============================================ */

.need-me {
    background: transparent;
}

.need-me-content {
    max-width: 900px;
    margin: 0 auto;
}

.need-me-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

/* Bullet Points - Controls: font size, line height, color */
.need-me-list li {
    font-size: 1.3rem; /* Increased from 1.2rem */
    line-height: 1.9; /* Increased from 1.8 */
    color: #d1dee4;
    padding-left: 2rem;
    position: relative;
    font-weight: 500; /* Added weight */
}

/* Checkmark Icon - Controls: color, size */
.need-me-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: bold;
    font-size: 1.4rem; /* Increased from 1.3rem */
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* ============================================
   PROJECTS SECTION (HIDDEN)
   Controls: grid layout, card styling
   ============================================ */

.projects {
    background: transparent;
}

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

.project-card {
    background: #1a1a1a;
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
    background: #1f1f1f;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.project-link {
    font-weight: 600;
    color: #0ea5e9;
}

.project-link:hover {
    color: #0284c7;
}

/* ============================================
   WHAT I DO (HIGHLIGHTS) SECTION
   Controls: card layout, text size, colors, hover effects
   ============================================ */

.highlights {
    background: transparent;
}

/* Grid Layout - Controls: columns, gap */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Highlight Cards - Controls: padding, background, border, layout */
.highlight-card {
    padding: 1.5rem;
    background: rgba(14, 165, 233, 0.05); /* Transparent blue background */
    border: 1px solid rgba(14, 165, 233, 0.2); /* Blue border */
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

/* Card Hover Effect - Controls: background, border, transform */
.highlight-card:hover {
    background: rgba(14, 165, 233, 0.1); /* Slightly more solid on hover */
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-4px);
}

/* Icon - Controls: color, size */
.highlight-icon {
    color: #0ea5e9; /* Electric blue */
    font-size: 1.65rem; /* Increased from 1.5rem */
    display: block;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.highlight-content {
    flex: 1;
}

/* Card Title - Controls: font size, weight, color */
.highlight-title {
    font-size: 1.3rem; /* Increased 15% from 1.25rem */
    font-weight: 650; /* Increased from 600 */
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Card Description - Controls: font size, color, line height */
.highlight-description {
    font-size: 1.15rem; /* Increased 15% from 1rem */
    color: #b0b0b0;
    line-height: 1.6; /* Increased from 1.5 */
    font-weight: 500; /* Added weight */
}

/* ============================================
   CONTACT SECTION
   Controls: card layout, icons, text size, colors
   ============================================ */

.contact {
    background: transparent;
}

/* Grid Layout - Controls: columns, gap */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Contact Cards - Controls: padding, background, border */
.contact-card {
    padding: 1.75rem 1.5rem;
    background: rgba(14, 165, 233, 0.05); /* Transparent blue background */
    border: 1px solid rgba(14, 165, 233, 0.2); /* Blue border */
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    text-align: center;
}

/* Card Hover Effect - Controls: background, border, transform */
.contact-card:hover {
    background: rgba(14, 165, 233, 0.1); /* Slightly more solid on hover */
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-4px);
}

/* Contact Icon (Emoji) - Controls: size, spacing */
.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Contact Icon (Image) - Controls: size, spacing */
.contact-icon-img {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: block;
    object-fit: contain;
}

/* Contact Title - Controls: font size, weight, color */
.contact-title {
    font-size: 1.2rem; /* Increased from 1.15rem */
    font-weight: 700; /* Increased from 600 */
    color: #e0e0e0;
    line-height: 1.3;
}

/* ============================================
   FOOTER
   Controls: padding, border, text
   ============================================ */

.footer {
    background: transparent;
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    text-align: center;
}

.footer-content p {
    font-size: 0.95rem;
    color: #707070;
}

/* ============================================
   ANIMATIONS
   Controls: fade-in effects, timing
   ============================================ */

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delayed-1 {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delayed-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delayed-3 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

/* ============================================
   RESPONSIVE DESIGN (MOBILE)
   Controls: tablet and mobile layouts
   ============================================ */

@media (max-width: 768px) {
    .nav-links { gap: 1.5rem; }
    .hero { padding: 6rem 1.5rem 3rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
