/* --- VARIABLES --- */
:root {
    --bg-dark: #0f1014;       /* The main background */
    --gold: #D4AF37;          /* The Metallic Gold */
    --orange-arkonix: #FF4400; /* Arkonix Specific Orange */
    --text-white: #ffffff;
    --text-grey: #a0a0a0;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}
html {
    scroll-behavior: smooth; /* This enables the sliding animation */
}
/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn't break layout */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
}

a { text-decoration: none; color: white; transition: 0.3s; }

/* --- NAVIGATION BAR --- */
.navbar {
    display: flex;              /* 1. Turn on Flexbox */
    justify-content: space-between; /* 2. Push Logo left, Links right */
    align-items: center;        /* 3. Vertically center them */
    padding: 20px 5%;           /* Spacing from the edges */
    position: fixed;            /* Stick to top */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 16, 20, 0.95); /* Slightly see-through dark */
    z-index: 1000;
}

.logo-text {
    font-family: var(--font-head);
    color: var(--gold);
    line-height: 1.1;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1.2rem;
}
/* Add styling for the small logo in the navbar */
.logo-img {
    width: 150px; /* Keep it small */
    margin-right: 15px; /* Space between logo and text */
    }
.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;              /* Make list items sit in a row */
    gap: 30px;                  /* Space between links */
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover { color: var(--gold); }

/* --- HERO SECTION --- */
.hero {
    display: flex;              /* Split screen 50/50 */
    align-items: center;        /* Center vertically */
    justify-content: space-between;
    height: 100vh;              /* Full viewport height */
    padding: 0 10%;             /* 10% spacing on sides */
    background: radial-gradient(circle at 70% 50%, #1a1a1a 0%, var(--bg-dark) 60%);
}

.hero-content {
    flex: 0.8;                    /* Take up 50% width */
}

.hero-image {
    flex: 1.2;                    
    display: flex;
    justify-content: flex-end; /* Align image to the right */
}

/* Typography Styling */
.hero h4 {
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;          /* Big Text */
    line-height: 1.2;
    margin-bottom: 20px;
}

.gold-text { color: var(--gold); }

.hero p {
    color: var(--text-grey);
    max-width: 500px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Button Styling */
.btn-main {
    display: inline-block;
    background-color: var(--gold);
    color: #000;
    padding: 15px 35px;
    font-family: var(--font-head);
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background-color: #fff;
    transform: translateY(-3px); /* Lifts up slightly */
}

/* Image Control */
.mascot {
    width: 100%;
    max-width: 700px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2)); /* Gold Glow */
    animation: float 6s ease-in-out infinite;
    transform: scale(1.8);
}

/* --- DEVELOPMENT SECTION --- */
.development-section {
    padding: 100px 10%;
    background-color: var(--bg-dark);
    text-align: center;
}

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

.development-columns {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-top: 50px;
}

.dev-left, .dev-right {
    flex: 1;
}

.dev-right {
    text-align: left;
}

/* Phone Frame */
.phone-frame {
    width: 280px;
    height: 580px;
    border: 12px solid #222;
    border-radius: 40px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 40px rgba(255, 68, 0, 0.3); /* Orange Glow for Arkonix */
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column Content */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.dev-title {
    font-family: var(--font-head);
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--text-white);
}

.dev-description {
    color: var(--text-grey);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Tech Stack Icons */
.tech-stack {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.tech-stack i {
    font-size: 2.5rem;
    color: rgba(255, 68, 0, 0.9); /* Arkonix Orange */
    transition: 0.3s;
}

.tech-stack i:hover {
    transform: translateY(-5px);
    color: #ff4400;
}

/* --- UPDATED SERVICES SECTION (FLEXBOX) --- */
.services-section {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    color: var(--gold);
    font-family: var(--font-head);
    margin-bottom: 50px;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.services-grid {
    display: flex; /* Changed from grid to flex */
    justify-content: center;
    gap: 15px; /* Reduced gap to save horizontal space */
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: nowrap; /* Forces them to stay in a single row */
}

.service-card {
    flex: 1; /* Ensures all cards shrink and grow equally */
    min-width: 0; /* Allows cards to shrink smaller than their content */
    background-color: #1a1b20;
    border: 1px solid var(--gold);
    padding: 30px 15px; /* Slightly reduced padding for tighter screens */
    border-radius: 8px;
    transition: 0.3s ease;
    cursor: pointer;
}

/* Hover Effect: Lifts up and glows */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background-color: #25262e;
}

/* Icon Styling */
.service-card .icon {
    font-size: 3rem; /* Big Icon */
    color: var(--gold); /* Gold Icon */
    margin-bottom: 20px;
    display: block; /* Ensures it sits on its own line */
}

.service-card h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.5;
}
/* --- PORTFOLIO SECTION --- */
.portfolio-section {
    padding: 80px 10%;
    text-align: center;
    background-color: #0f1014; /* Dark Background */
}

.portfolio-grid {
    display: grid;
    /* 4 columns, equal width */
    grid-template-columns: repeat(4, 1fr); 
    /* 2 rows, set height */
    grid-template-rows: repeat(2, 200px);  
    gap: 20px;
    margin-bottom: 50px;
}

.project-card {
    border: 1px solid var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    background-color: rgba(255, 255, 255, 0.02); /* Very faint fill */
}

.project-card:hover {
    background-color: rgba(212, 175, 55, 0.1); /* Gold tint on hover */
    border-color: #fff;
    cursor: pointer;
}

.project-card i {
    font-size: 2rem;
    color: #333; /* Placeholder icon color */
}

/* Gallery Button */
.btn-outline {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--text-white);
    padding: 10px 40px;
    font-family: var(--font-head);
    letter-spacing: 2px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: #000;
}

/* --- FOOTER --- */
footer {
    background-color: #000;
    padding: 60px 10% 20px 10%;
    border-top: 1px solid #333;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows stacking on small screens */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1; /* Each column takes equal space */
    min-width: 250px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-family: var(--font-head);
}

.footer-tagline {
    color: var(--text-grey);
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
    color: var(--text-grey);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links i, .social-icons i {
    color: var(--gold);
}
.footer-logo {
    width: 150px; /* You can change this number to make it bigger/smaller */
    height: auto;
    margin-right: 15px;
    vertical-align: middle;
}

.social-icons a {
    display: block; /* Stack them vertically like the design */
    color: var(--text-grey);
    margin-bottom: 10px;
}

.social-icons a:hover {
    color: var(--gold);
}

.copyright {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #555;
    font-size: 0.8rem;
}
/* --- ABOUT SECTION --- */
.about-section {
    padding: 100px 10%;
    background-color: #16171d; /* Slightly lighter than main bg to stand out */
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text, .about-skills {
    flex: 1; /* Split 50/50 */
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-grey);
    line-height: 1.8;
}

/* Stats (The numbers) */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--gold);
    font-family: var(--font-head);
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skill Bars */
.skill {
    margin-bottom: 25px;
}

.skill-name {
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
    font-family: var(--font-head);
    letter-spacing: 1px;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #333; /* Dark grey track */
    border-radius: 5px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background-color: var(--gold);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--gold); /* Gold Glow */
}

/* --- ARKONIX ACCENT STYLES --- */
/* This class is applied to headers or elements that need Arkonix branding */
.arkonix-accent {
    background: linear-gradient(to right, var(--gold), var(--orange-arkonix));
    -webkit-background-clip: text; /* For WebKit browsers */
    background-clip: text;
    color: transparent; /* Make text transparent so background shows */
    display: inline-block; /* Needed for background-clip to work */
}

.arkonix-accent-text {
    background: linear-gradient(to right, var(--gold), var(--orange-arkonix));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Specific styles for Arkonix page elements */
.arkonix-hero {
    background: linear-gradient(to right, #1a1a1a, #333333); /* Dark, futuristic gradient */
    color: #fff;
    text-align: center;
    padding: 180px 10% 80px 10%;
    position: relative;
    display: flex;
    flex-direction: column; /* Changed to column for mobile first */
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.arkonix-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 68, 0, 0.3) 0%, rgba(26, 26, 26, 0) 70%);
    z-index: 1;
}

/* New wrapper for content and visual for desktop flex */
.arkonix-hero .hero-main-content {
    display: flex; /* Default to column for mobile */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px; /* Space between text and image */
    max-width: 1200px; /* Constrain overall width */
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.arkonix-hero .hero-content,
.arkonix-hero .hero-text-side {
    flex: 1;
    position: relative;
    z-index: 2;
    max-width: 800px; /* Keep max-width for text content */
    margin-bottom: 0; /* Reset margin */
    text-align: center; /* Center text for mobile */
}

.arkonix-hero .hero-subtext {
    font-size: 1.2rem;
    color: #ccc;
    letter-spacing: 1px;
}

.arkonix-hero .arkonix-accent-text {
    font-size: 3.5em;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

.arkonix-hero .hero-visual {
    flex: 1;
    position: relative;
    z-index: 2;
    width: 100%; /* Take full width on mobile */
    max-width: 320px; /* Max width for the mockup image container */
    height: auto; /* Allow height to adjust */
    margin: 0 auto;
    display: flex; /* To center the image within its flex item */
    justify-content: center;
    align-items: center;
}

.arkonix-hero .dashboard-mockup {
    width: 100%; /* Image takes full width of its constrained parent */
    height: auto;
    max-height: 650px; /* Max height for the mockup */
    object-fit: contain; /* Ensure image fits without cropping */
    display: block;
    border-radius: 10px; /* Slightly rounded corners */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); /* Add depth */
}

.arkonix-hero .phone-container {
    width: 300px;
    border: 8px solid #333;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 68, 0, 0.3);
    background: #000;
}


.features-benefits-section {
    background-color: #1a1a1a; /* Dark background for features */
    color: #fff;
    padding: 80px 20px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.feature-item {
    background-color: #222; /* Slightly lighter than section background */
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.feature-item .icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--orange-arkonix); /* Arkonix Orange */
    text-shadow: 0 0 10px rgba(255, 68, 0, 0.7);
}

.feature-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-grey);
}

.cta-section {
    background: linear-gradient(to right, #333, #1a1a1a); /* Dark gradient */
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8em;
    font-family: var(--font-head);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #ddd;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.arkonix-btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.arkonix-btn.btn-main {
    background-color: var(--orange-arkonix); /* Arkonix Orange */
    color: #fff;
    border: 2px solid var(--orange-arkonix);
}

.arkonix-btn.btn-main:hover {
    background-color: #e63c00;
    border-color: #e63c00;
    transform: translateY(-2px);
}

.arkonix-btn.btn-outline {
    background-color: transparent;
    color: var(--gold); /* Gold */
    border: 2px solid var(--gold);
}

.arkonix-btn.btn-outline:hover {
    background-color: var(--gold);
    color: #1a1a1a;
    transform: translateY(-2px);
}


/* --- MOBILE RESPONSIVENESS (MEDIA QUERIES) --- */

/* For Tablets and smaller (screens narrower than 1024px) */
@media (max-width: 1024px) {
    .hero {
        padding: 0 5%; /* Less padding on sides */
    }
    .hero h1 {
        font-size: 2.5rem; /* Smaller text */
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 4 */
    }
}

/* Squeeze Typography for Smaller Screens */
@media (max-width: 1100px) {
    .service-card h3 {
        font-size: 0.85rem; /* Shrink title text to fit row */
    }
    .service-card p {
        font-size: 0.75rem; /* Shrink body text to fit row */
    }
    .service-card .icon {
        font-size: 2rem; /* Scale down icons */
    }
}

/* Final Stack Point (Optional) */
/* If the screen gets too thin (e.g., mobile phones),
   it is best to finally let them stack for readability. */
@media (max-width: 600px) {
    .services-grid {
        flex-wrap: wrap;
    }
    .service-card {
        flex: 1 1 100%; /* Return to full width on mobile */
    }
}

/* Arkonix Hero Desktop Layout - for screens wider than 992px */
@media (min-width: 993px) {
    .arkonix-hero .hero-main-content {
        flex-direction: row; /* Two-column layout for desktop */
        text-align: left; /* Align text left */
        gap: 80px; /* More space for desktop */
        min-height: 70vh; /* Ensure hero section has enough height */
    }

    .arkonix-hero .hero-content,
    .arkonix-hero .hero-text-side {
        text-align: left; /* Align text left on desktop */
        flex: 1.2; /* Give text side more space */
    }

    .arkonix-hero .hero-visual {
        flex: 0.8; /* Give visual side less space */
    }
}

/* Arkonix Hero Mobile/Tablet Layout - for screens 992px and narrower */
@media (max-width: 992px) {
    .arkonix-hero .hero-main-content {
        flex-direction: column; /* Stack vertically on mobile/tablet */
        text-align: center;
    }

    .arkonix-hero .hero-text-side {
        text-align: center;
    }
}

/* --- CRITICAL MOBILE REPAIRS --- */
@media (max-width: 768px) {
    /* 1. Kill Horizontal Scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* 2. Fix Hero/Nav Overlap */
    .hero {
        padding-top: 180px !important; /* Pushes mascot/text below nav */
        height: auto;
        min-height: 100vh;
        flex-direction: column-reverse;
        text-align: center;
    }

    .mascot {
        transform: scale(1); /* Reset scale to natural size */
        max-width: 500px; /* Wider for better proportions */
        width: 90%; /* Allow it to use more screen width */
        margin-top: 20px;
    }

    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-content {
        margin-top: 30px;
    }

    .hero p {
        margin: 0 auto 30px auto;
    }

    /* 3. Un-squeeze About Us */
    .about-container {
        flex-direction: column; /* Stack text and bars vertically */
        gap: 40px;
        padding: 0 5%;
    }

    .about-text, .about-skills {
        width: 100%;
        text-align: center;
    }

    .about-text h2 {
        text-align: center !important;
    }

    /* 4. Fix Nav Scrolling to the side */
    .navbar {
        flex-direction: column;
        padding: 15px;
        width: 100vw;
        left: 0;
        box-sizing: border-box;
    }

    .nav-links {
        margin-top: 20px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Stack the Grids */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Stack the Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links li {
        justify-content: center;
    }

    /* Stack Development Section */
    .development-columns {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .dev-title {
        font-size: 2.2rem;
    }

    .tech-stack {
        justify-content: center;
    }

    /* Arkonix Hero mobile adjustments */
    .arkonix-hero {
        padding: 160px 15px 60px 15px;
        min-height: 50vh;
    }

    .arkonix-hero .arkonix-accent-text {
        font-size: 2em;
    }

    .arkonix-hero .hero-visual {
        max-width: 280px;
    }

    .cta-content h2 {
        font-size: 2.3em;
    }
}

@media (max-width: 576px) {
    .arkonix-hero {
        padding: 140px 10px 50px 10px;
        min-height: 40vh;
    }
    .arkonix-hero .arkonix-accent-text {
        font-size: 1.8em;
    }
    .feature-item {
        padding: 20px 15px;
    }
    .cta-section {
        padding: 60px 15px;
    }
    .cta-content h2 {
        font-size: 2em;
    }
}
/* Unsure if I want to keep this animation, but it's here if needed
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
} */
/* --- ABOUT SECTION --- */
.about-section {
    padding: 100px 10%;
    background-color: #16171d; /* Slightly lighter than main bg to stand out */
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text, .about-skills {
    flex: 1; /* Split 50/50 */
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-grey);
    line-height: 1.8;
}

/* Stats (The numbers) */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--gold);
    font-family: var(--font-head);
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skill Bars */
.skill {
    margin-bottom: 25px;
}

.skill-name {
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
    font-family: var(--font-head);
    letter-spacing: 1px;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #333; /* Dark grey track */
    border-radius: 5px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background-color: var(--gold);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--gold); /* Gold Glow */
}
