:root {
    /* Primary Gradients - Deep, sophisticated blues with purple undertones */
    --gradient-primary: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    /* Neutral Scale - Sophisticated grays with subtle warmth */
    --neutral-50: #fafbfc;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;

    /* Accent Colors - Sophisticated highlights */
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-violet: #8b5cf6;

    /* Semantic Colors */
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-600);
    --text-muted: var(--neutral-500);
    --background-primary: var(--neutral-50);
    --background-secondary: var(--neutral-100);
    --border-subtle: var(--neutral-200);
    --border-strong: var(--neutral-300);

    /* Typography System */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Fluid type scale using clamp() */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
    --text-5xl: clamp(2.75rem, 2.35rem + 2vw, 3.75rem);
    --text-6xl: clamp(3.25rem, 2.75rem + 2.5vw, 4.5rem);

    /* Line heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Spacing System (8px Grid) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */

    /* Section spacing */
    --section-padding-y: var(--space-20);
    --container-padding-x: var(--space-6);

    /* Border Radius System */
    --radius-sm: 0.125rem;    /* 2px */
    --radius-md: 0.375rem;    /* 6px */
    --radius-lg: 0.5rem;      /* 8px */
    --radius-xl: 0.75rem;     /* 12px */
    --radius-2xl: 1rem;       /* 16px */
    --radius-3xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;    /* Fully rounded */

    /* Shadow System */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Glow effects */
    --shadow-glow-sm: 0 0 20px -5px rgb(102 126 234 / 0.4);
    --shadow-glow-md: 0 0 30px -10px rgb(102 126 234 / 0.6);

    /* Z-Index System */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Animation System */
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Durations */
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 350ms;
    --duration-slower: 500ms;

    /* Legacy variables for backward compatibility */
    --primary: var(--neutral-900);
    --secondary: var(--neutral-100);
    --light-gray: var(--neutral-50);
    --dark-gray: var(--neutral-600);
    --accent-blue: #3498DB;
    --accent-green: #2ECC71;
    --accent-purple: #9B59B6;
    --accent-yellow: #F1C40F;
    --tile-bg: var(--neutral-50);
    --tile-border: var(--border-subtle);
    --tile-shadow: rgb(0 0 0 / 0.1);
    --tile-hover: var(--neutral-50);

    /* Hero Section */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    background: var(--background-primary);
    color: var(--text-primary);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
}

header {
    text-align: center;
    padding: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-5xl);
    line-height: var(--leading-tight);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2 {
    font-size: var(--text-4xl);
    line-height: var(--leading-snug);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-3xl);
    line-height: var(--leading-snug);
    font-weight: 500;
}



.section {
    padding: var(--section-padding-y) 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--background-secondary);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-8);
    padding: var(--space-8) var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}



.service-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--primary);
    transition: all var(--duration-base) var(--ease-out);
    transform-origin: center;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md);
}

.service-tile i {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.service-tile span {
    font-size: var(--text-lg);
    font-weight: 600;
    text-align: center;
}

.service-tile:hover {
    background: var(--tile-hover);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow-sm);
}

.service-tile:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Service-specific styling */
.service-tile.predict:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
}

.service-tile.predict i {
    color: var(--accent-blue);
}

.service-tile.jellyfin:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
}

.service-tile.jellyfin i {
    color: var(--accent-green);
}

.service-tile.owncloud:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(155, 89, 182, 0.05));
}

.service-tile.owncloud i {
    color: var(--accent-purple);
}

.service-tile.money-planner:hover {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(241, 196, 15, 0.05));
}

.service-tile.money-planner i {
    color: var(--accent-yellow);
}

.service-tile.about-me:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
}

.service-tile.about-me i {
    color: var(--accent-violet);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}



@media (max-width: 768px) {
    :root {
        --section-padding-y: var(--space-12);
        --container-padding-x: var(--space-4);
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: var(--space-6);
        padding: var(--space-6) var(--space-4);
    }

    .service-tile {
        padding: var(--space-6);
    }

    .service-tile i {
        font-size: 2rem;
    }

    .service-tile span {
        font-size: var(--text-base);
    }

    h1 {
        font-size: var(--text-4xl);
        line-height: var(--leading-tight);
    }

    h2 {
        font-size: var(--text-3xl);
        line-height: var(--leading-snug);
    }

    h3 {
        font-size: var(--text-2xl);
        line-height: var(--leading-snug);
    }

    header {
        padding: 1.5rem 0;
    }

    .hero {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--space-4);
        padding: var(--space-4);
    }

    .service-tile {
        padding: var(--space-4);
        min-height: 120px;
    }

    .service-tile i {
        font-size: 1.8rem;
        margin-bottom: var(--space-2);
    }

    .service-tile span {
        font-size: var(--text-sm);
    }

    header {
        padding: 1rem 0;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero h2 {
        font-size: var(--text-2xl);
    }

    .hero p {
        font-size: var(--text-base);
    }
}













/* Button Styles */


.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}





/* Fade-up animation for content blocks */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section > .container > * {
  animation: fade-up 0.5s ease forwards;
  opacity: 0;
}

/* Delay animations for staggered effect */
section > .container > *:nth-child(1) { animation-delay: 0.1s; }
section > .container > *:nth-child(2) { animation-delay: 0.2s; }
section > .container > *:nth-child(3) { animation-delay: 0.3s; }





/* Project Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.modal-content {
  background: var(--tile-bg);
  border-radius: 8px;
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}






/* Contact Section Styles */
#contact {
    padding: var(--section-padding-y) 0;
    background: var(--tile-bg);
    border-top: 1px solid var(--tile-border);
    border-bottom: 1px solid var(--tile-border);
}

#contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

#contact h2 {
    text-align: center;
    margin-bottom: var(--space-8);
}





#contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--tile-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    box-sizing: border-box;
    transition: all var(--duration-base) var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-violet);
    outline-offset: 2px;
    border-color: var(--accent-violet);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-form button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    font-family: var(--font-body);
    font-size: var(--text-base);
    box-shadow: var(--shadow-md);
}

#contact-form button:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}




/* ITIL Deployment Management Styles */
.itil-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8);
}

.deployment-overview {
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-md);
}

.deployment-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.stage {
    background: var(--light-gray);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
}

.stage:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stage.planning {
    border-top: 4px solid var(--accent-blue);
}

.stage.build {
    border-top: 4px solid var(--accent-green);
}

.stage.test {
    border-top: 4px solid var(--accent-yellow);
}

.stage.deploy {
    border-top: 4px solid var(--accent-purple);
}

.deployment-tools {
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.deployment-tools ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    list-style-type: none;
    padding: 0;
}

.deployment-tools li {
    padding: var(--space-4);
    background: var(--light-gray);
    border-radius: var(--radius-md);
    text-align: center;
}

.deployment-tools li:before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
    margin-right: var(--space-2);
}

/* Responsive styles for ITIL page */
@media (max-width: 768px) {
    .itil-content {
        padding: var(--space-4);
    }

    .deployment-stages {
        grid-template-columns: 1fr;
    }

    .deployment-tools ul {
        grid-template-columns: 1fr;
    }
}

