:root {

    --bg: #ffffff; --text: #1a1a1a; --accent: #0056b3; --sub: #666; --border: #eeeeee; --img-bg: #f9f9f9;

}

.dark-mode {

    --bg: #0f0f0f; --text: #f0f0f0; --accent: #4da3ff; --sub: #aaaaaa; --border: #222; --img-bg: #1a1a1a;

}



* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }

html { scroll-behavior: smooth; }

body { background: var(--bg); color: var(--text); transition: 0.3s; line-height: 1.6; padding-top: 70px; }



.container { max-width: 1000px; margin: 0 auto; padding: 0 5%; }



/* Header */

header {

    position: fixed; top: 0; width: 100%; height: 70px;

    background: var(--bg); border-bottom: 1px solid var(--border);

    display: flex; justify-content: space-between; align-items: center;

    padding: 0 8%; z-index: 1000;

}

.logo { font-weight: 800; font-size: 1.4rem; }

.nav-links { display: flex; list-style: none; gap: 20px; }

.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }



/* Hero Section */

.hero-section { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }

.hero-flex { display: flex; align-items: flex-start; gap: 50px; width: 100%; margin-bottom: 40px; }

.hero-text { flex: 1.5; padding-top: 20px; }

.main-name { font-size: 3.5rem; font-weight: 900; line-height: 1.1; }

.brand-line { display: flex; align-items: center; gap: 10px; margin: 10px 0 10px; }

.mini-logo { height: 24px; }

.brand-sub { font-family: monospace; font-weight: bold; font-size: 1.4rem; color: var(--accent); }

.title { font-size: 1.2rem; color: var(--sub); }



/* Hero Image - Non-pointy, Complete */

.hero-image { flex: 1; display: flex; justify-content: flex-end; }

.hero-image img {

    width: 100%;

    max-width: 380px;

    height: auto;    

    border-radius: 30px;

    object-fit: contain;

    border: 1px solid var(--border);

    background: var(--img-bg);

}



/* Quote Design */

.quote-wrapper { position: relative; padding: 20px 0; margin-top: 20px; }

.quote-design-line { width: 60px; height: 4px; background: var(--accent); margin-bottom: 15px; }

.stylized-quote { font-size: 1.6rem; font-weight: 300; font-style: italic; max-width: 600px; line-height: 1.3; }



/* Sections */

.section { padding: 80px 0; }

h2 { font-size: 2rem; margin-bottom: 30px; letter-spacing: 1px; }

.divider { border: 0; border-top: 1px solid var(--border); }



/* Projects & Services Grid */

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.project-item { text-decoration: none; color: inherit; display: block; }

.project-item.linked:hover { transform: translateY(-5px); opacity: 0.9; transition: 0.3s; }



/* Global Image Styling - Complete and Non-pointy */

.img-container {

    width: 100%;

    height: 200px; /* Fixed height for grid alignment */

    background: var(--img-bg);

    border-radius: 25px; /* Non-pointy rounded edges */

    overflow: hidden;

    margin-bottom: 15px;

    border: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: center;

}



.img-container img {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain; /* Ensures the complete image is visible */

    border-radius: 20px;

}



.p-date, .client-link { font-size: 0.8rem; color: var(--accent); font-weight: bold; margin-bottom: 5px; }

.client-link a { text-decoration: none; color: var(--accent); }



/* Service CTA */

.service-cta { margin-top: 40px; padding: 30px; background: rgba(0, 86, 179, 0.05); border-radius: 25px; text-align: center; }

.sub-line { font-size: 0.85rem; margin-bottom: 15px; color: var(--accent); font-weight: bold; }



/* Resume & Testimonials */

.resume-container { height: 850px; border: 1px solid var(--border); border-radius: 25px; overflow: hidden; }

.rec-item { border-left: 3px solid var(--accent); padding-left: 20px; font-style: italic; text-decoration: none; color: inherit; display: block; margin-bottom: 20px;}



/* Contact Icons */

.icon-links { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }

.icon-links img { width: 35px; border-radius: 8px; transition: 0.3s; }

.icon-links img:hover { transform: scale(1.2); }



/* Buttons & Tags */

.btn-main { display: inline-block; padding: 12px 30px; background: var(--text); color: var(--bg); text-decoration: none; border-radius: 50px; font-weight: bold; }

.status-tag { display: inline-block; padding: 4px 12px; border: 1px solid var(--accent); color: var(--accent); font-size: 0.9rem; border-radius: 10px; }



footer { text-align: center; padding: 40px; border-top: 1px solid var(--border); font-size: 0.8rem; opacity: 0.6; }

#theme-toggle { background: none; border: 1px solid var(--border); cursor: pointer; padding: 8px; border-radius: 50%; color: var(--text); }



/* Add this to your CSS file */

.img-container video {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain; /* Ensures the whole video frame is visible */

    border-radius: 20px; /* Matches your image rounding */

    display: block;

}


/* News Item Styling */
.news-list { display: flex; flex-direction: column; gap: 15px; }
.news-item { 
    padding: 15px; 
    background: var(--img-bg); 
    border-radius: 15px; 
    border-left: 4px solid var(--accent); 
}

/* --- THE MOBILE FIX (PC, Tab, and Phone) --- */

@media (max-width: 850px) {
    header {
        flex-direction: column; /* Stacks Logo above Nav */
        height: auto;
        padding: 10px 0;
    }

    .logo { margin-bottom: 5px; font-size: 1.2rem; }

    /* The Scrollable Menu Fix */
    nav {
        width: 100%;
        overflow-x: auto; /* Allows side-swiping on phone */
        display: flex;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links {
        padding: 10px 20px;
        gap: 15px;
    }

    .nav-links li { white-space: nowrap; } /* Stops words from breaking */

    nav::-webkit-scrollbar { display: none; } /* Keeps it clean */

    #theme-toggle {
        position: absolute;
        right: 15px;
        top: 12px;
    }

    /* Hero Section Adjustments */
    .hero-flex {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    
    .hero-image { justify-content: center; }
    .hero-image img { max-width: 250px; }
    .main-name { font-size: 2.2rem; }
    .brand-line { justify-content: center; }
    .stylized-quote { font-size: 1.2rem; margin: 0 auto; }
}

/* Tablet & Mobile Grid Fix */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr; /* One project per row on phones */
    }
    .resume-container { height: 500px; }
}