/*
Theme Name: peteIT.dev
Theme URI: https://peteit.dev
Author: peteIT
Author URI: https://peteit.dev
Version: 1.2.4
Text Domain: peteit-rebuild
*/

:root {
    /* Colors - Dark Theme Teal */
    --bg-dark: #061214;        /* Dark Deep Teal/Black */
    --bg-card: #0e2229;        /* Slightly lighter card bg */
    --bg-card-hover: #132e38;
    
    --primary-color: #00d2a0;  /* Vibrant Teal/Green */
    --primary-hover: #00b388;
    
    --text-main: #f0f2f5;      /* Main Heading/Body Text */
    --text-muted: #94a3b8;     /* Secondary Text */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.3);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Basic Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5em; color: var(--text-muted); }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-purple { color: var(--primary-color); } /* Legacy class mapped to new primary */
.text-white { color: var(--text-main) !important; }

/* Layout Utilities */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}
.container-fluid { width: 100%; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-column { flex-direction: column; }

.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }

.text-center { text-align: center; }

/* Grid System - Responsive */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Base columns (mobile first, stacked) */
[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Tablet / Desktop Grid */
@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-12 { flex: 0 0 100%; max-width: 100%; }
    
    .col-half { flex: 0 0 50%; max-width: 50%; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark); /* Dark text on bright button for contrast */
    font-weight: 600;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    color: var(--bg-dark);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-pill { border-radius: 50px; }

/* Header Styling */
.site-header {
    background: transparent;
    padding: 24px 0;
    position: relative; 
    z-index: 100;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.25rem;
}
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
}
.main-navigation a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.main-navigation a:hover { color: var(--primary-color); }

/* Hero Section */
.hero-section {
    padding: 100px 0;
    overflow: hidden;
}
.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-content h1 span { 
    display: block; 
}
.hero-lead {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 40px;
    color: var(--text-muted);
}

/* Hero Floating Card */
.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    max-width: 400px;
    position: relative;
    z-index: 2;
}
.hero-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 210, 160, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.2rem;
}
.hero-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-main); }
.hero-card p { font-size: 0.9rem; font-style: italic; color: var(--text-muted); }
.hero-card-tags { display: flex; gap: 10px; margin-top: 15px; }
.hero-tag {
    background: rgba(255,255,255,0.05);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Tech Stack & Features */
.tech-stack-section {
    padding: 100px 0;
    background: var(--bg-dark); 
}
.tech-intro h2 { font-size: 3.5rem; margin-bottom: 24px; }
.tech-cards-sm { display: flex; gap: 20px; margin-top: 40px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    flex: 1;
}
.feature-card-sm h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-main); }
.feature-card-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* Skill Bars */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    box-shadow: none;
}
.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.skill-name { font-weight: 700; font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-main); }
.skill-dot { width: 6px; height: 6px; background: var(--primary-color); border-radius: 50%; }
.progress-bar-bg {
    background: rgba(255,255,255,0.1);
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar-fill {
    background: var(--primary-color);
    height: 100%;
    border-radius: 6px;
}
.skill-level { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Specializations */
.spec-item, .service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    height: 100%;
}

/* Experience Section */
.experience-section {
    background: #000;
    padding: 100px 0;
}
.experience-section p { color: var(--text-muted); }

.circular-cta {
    width: 140px;
    height: 140px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-dark);
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}
.circular-cta:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Projects Cards */
.projects-list .card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.projects-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    background: var(--bg-card-hover);
}
.card-img-top {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.projects-list .card:hover .card-img-top { opacity: 1; }

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-body h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--text-main); }
.card-body p { font-size: 0.95rem; margin-bottom: 20px; color: var(--text-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
}

.bg-light { background-color: transparent !important; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    .hero-graphic { margin-top: 40px; }
    .skills-grid { grid-template-columns: 1fr; }
    .main-navigation { display: none; }
}

/* Services Page New Design */
.service-section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.service-meta-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 210, 160, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.service-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.tech-label, .benefits-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.tech-tag-pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05); /* Dark Glass */
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
}
.tech-tag-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 1rem;
}

.check-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    font-size: 12px;
}

.service-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.service-image-container:hover img {
    transform: scale(1.05);
}



/* =========================================
   ADDITIONS: Process, Contact, Slider
   ========================================= */

/* Process Section (Services Page) */
.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.process-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.process-number {
    font-size: 4rem;
    font-weight: 700;
    color: transparent;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    line-height: 1;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    opacity: 0.5;
}
.process-card:hover .process-number {
    -webkit-text-stroke: 1px var(--primary-color); 
    opacity: 1;
}
.process-card h3 {
    margin-top: 40px; /* Make room for number */
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Contact Form Styles */
.contact-form-card label {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.form-control {
    background-color: rgba(0,0,0,0.3) !important;
    border: 1px solid var(--border-color);
    color: var(--text-main) !important;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 1rem;
}
.form-control:focus {
    background-color: rgba(0,0,0,0.5) !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 210, 160, 0.2);
}
.btn-teal {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-teal:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 210, 160, 0.2);
}
::placeholder { color: rgba(255,255,255,0.2) !important; }

/* Tech Stack Infinite Slider */
.tech-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Fade edges mask */
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); 
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 60px 0;
    background: var(--bg-dark);
}

.tech-slider-track {
    display: flex;
    gap: 80px; /* Space between words */
    width: max-content;
    animation: scroll 40s linear infinite;
}

/* Pause on hover for easier reading */
.tech-slider-track:hover {
    animation-play-state: paused;
}

.tech-slide {
    font-size: 4rem; /* Big Impact Text */
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
}

.tech-slide:hover {
    color: var(--primary-color); /* Fill solid on hover */
    opacity: 1;
    transform: scale(1.1); /* Pop out */
    text-shadow: 0 0 30px rgba(0, 210, 160, 0.4);
    -webkit-text-stroke: 0px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}



/* Fixes for Contact Form Layout */
.contact-form-card label {
    display: block !important;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* Ensure columns stack properly on mobile if needed, but flex row handles desktop */
.row {
    margin-right: -15px;
    margin-left: -15px;
}



/* More breathing room for form fields */
.form-control {
    padding: 16px 20px; /* Taller inputs */
    margin-bottom: 5px; /* Tiny space below input before next element if tight */
}



/* Layout Utilities (Extra) */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.flex-fill { flex: 1 1 auto !important; }
.gap-3 { gap: 1rem; }
.h-100 { height: 100%; }
.g-3 { --bs-gutter-y: 1rem; --bs-gutter-x: 1rem; }

/* Contact Info Box Styling */
.contact-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.contact-info-box:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}
.contact-info-box h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.contact-info-box a, .contact-info-box p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* =========================================
   Mobile Menu Styles
   ========================================= */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    z-index: 200;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color) !important; /* Force visibility */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* Responsive Styles */
@media (max-width: 991px) { /* Adjust breakpoint as needed, usually 991px or 768px */

    /* Show Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide Navigation by default on Mobile */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark); /* Ensure background is opaque */
        z-index: 150;
        padding-top: 100px; /* Space for header */
        transform: translateX(100%); /* Slide out to right */
        transition: transform 0.3s ease-in-out;
        display: flex !important; /* Force flex display so it's not hidden by desktop styles if any */
        justify-content: center;
        align-items: flex-start;
        visibility: visible; /* Ensure it's not hidden via visibility property */
    }

    /* Show Navigation when active */
    .main-navigation.active {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    
    .menu-open {
        overflow: hidden; /* Prevent body scroll */
    }

    /* Nav List Styling for Mobile */
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        text-align: left;
        width: 100%;
        padding-left: 40px;
    }

    .main-navigation a {
        font-size: 1.5rem;
        font-weight: 600;
    }
}


