/* 
  Main Stylesheet for Portfolio Website
  Author: Your Name
  Date: May 2025
*/

/* ===== Base Styles ===== */
:root {
    /* Color Palette */
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --dark-surface-2: #292929;
    --marine-blue: #0a4d70;
    --marine-blue-light: #166d98;
    --marine-blue-dark: #073649;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #00b2ca;
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Poppins', var(--font-main);
    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Box Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container Widths */
    --container-width: 1200px;
  }
  
  /* Reset & Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;
  }
  
  a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  
  a:hover {
    color: var(--marine-blue-light);
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  ul, ol {
    list-style-position: inside;
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    margin-bottom: var(--space-md);
  }
  
  .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-xl);
    font-size: 2.2rem;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--marine-blue);
  }
  
  .highlight {
    color: var(--marine-blue-light);
  }
  
  /* Layout & Containers */
  .container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
  }
  
  section {
    padding: var(--space-xl) 0;
  }
  
  /* Header & Navigation */
  header {
    background-color: var(--dark-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
  }
  
  .logo a:hover {
    color: var(--marine-blue-light);
  }
  
  nav {
    display: flex;
    align-items: center;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li {
    margin-left: var(--space-lg);
  }
  
  .nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--text-primary);
    background-color: var(--marine-blue);
  }
  
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  /* Hero Section */
  .hero {
    padding: var(--space-xl) 0;
    background-color: var(--dark-surface);
    position: relative;
    overflow: hidden;
  }
  
  .hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(135deg, var(--marine-blue-dark) 0%, var(--marine-blue) 100%);
    clip-path: polygon(100% 0, 100% 100%, 30% 100%, 0 50%, 30% 0);
    z-index: 1;
    opacity: 0.7;
  }
  
  .hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
  }
  
  .hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
  }
  
  .hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
  }
  
  .primary-btn {
    background-color: var(--marine-blue);
    color: white;
  }
  
  .primary-btn:hover {
    background-color: var(--marine-blue-light);
    color: white;
  }
  
  .secondary-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--marine-blue);
  }
  
  .secondary-btn:hover {
    background-color: var(--marine-blue);
    color: white;
  }
  
  .small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .cta-buttons {
    display: flex;
    gap: var(--space-md);
  }
  
  /* Footer */
  footer {
    background-color: var(--dark-surface);
    padding: var(--space-xl) 0;
    margin-top: var(--space-xl);
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
  }
  
  .footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
  }
  
  .social-links {
    display: flex;
    gap: var(--space-md);
  }
  
  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-surface-2);
    transition: all var(--transition-fast);
  }
  
  .social-links a:hover {
    background-color: var(--marine-blue);
    transform: translateY(-3px);
  }
  
  .social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
  }
  
  .copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--dark-surface-2);
    padding-top: var(--space-lg);
  }
  
  /* Featured Projects Section */
  .featured-projects {
    background-color: var(--dark-bg);
    padding: var(--space-xl) 0;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
  }
  
  .project-card {
    background-color: var(--dark-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium);
  }
  
  .project-card:hover {
    transform: translateY(-5px);
  }
  
  .project-img {
    height: 200px;
    overflow: hidden;
  }
  
  .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
  }
  
  .project-card:hover .project-img img {
    transform: scale(1.05);
  }
  
  .project-info {
    padding: var(--space-lg);
  }
  
  .project-info h3 {
    margin-bottom: var(--space-sm);
  }
  
  .project-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
  }
  
  .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }
  
  .tech-stack span {
    background-color: var(--marine-blue-dark);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .view-all {
    text-align: center;
    margin-top: var(--space-xl);
  }
  
  /* Skills Overview Section */
  .skills-overview {
    background-color: var(--dark-surface);
    padding: var(--space-xl) 0;
  }
  
  .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
  }
  
  .skill-category {
    text-align: center;
  }
  
  .skill-category h3 {
    color: var(--marine-blue-light);
    margin-bottom: var(--space-md);
  }
  
  .skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
  }
  
  .skill-items span {
    background-color: var(--dark-surface-2);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
  }
  
  .more-about {
    text-align: center;
    margin-top: var(--space-xl);
  }
  
  /* Call to Action Section */
  .call-to-action {
    background-color: var(--marine-blue-dark);
    padding: var(--space-xl) 0;
    text-align: center;
  }
  
  .call-to-action h2 {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
  }
  
  .call-to-action p {
    max-width: 600px;
    margin: 0 auto var(--space-lg) auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
  }
  
  /* Utility Classes */
  .text-center {
    text-align: center;
  }
  
  .mt-1 { margin-top: var(--space-md); }
  .mt-2 { margin-top: var(--space-lg); }
  .mt-3 { margin-top: var(--space-xl); }
  
  .mb-1 { margin-bottom: var(--space-md); }
  .mb-2 { margin-bottom: var(--space-lg); }
  .mb-3 { margin-bottom: var(--space-xl); }