/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0A192F;
    --navy-light: #112240;
    --slate: #8892B0;
    --cyan: #008080; /* Darker teal for light background readability */
    --cyan-light: #64FFDA; /* User requested accent */
    --bg-main: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-main: #0A192F;
    --text-muted: #5a667d; /* Darker than slate for readability */
    --border-color: rgba(10, 25, 47, 0.1);
    --glass-bg: rgba(248, 250, 252, 0.85);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow-sm: 0 4px 6px -1px rgba(10, 25, 47, 0.05);
    --shadow-md: 0 10px 30px -15px rgba(10, 25, 47, 0.1);
    --shadow-lg: 0 20px 30px -15px rgba(10, 25, 47, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-light {
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Section Headings */
section {
    padding: 6rem 0;
}

.section-heading {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.section-num {
    font-family: var(--font-sans);
    color: var(--cyan);
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 1rem;
}

.section-title {
    font-size: 2rem;
    white-space: nowrap;
}

.line {
    height: 1px;
    background-color: var(--border-color);
    flex-grow: 1;
    margin-left: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--navy);
    color: var(--bg-white);
    border: 2px solid var(--navy);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--navy);
}

.btn-outline {
    background-color: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--bg-white);
}

.btn-block {
    width: 100%;
    display: block;
}

/* 1. Global Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cyan);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
}

/* 2. Section: Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    font-family: var(--font-sans);
    color: var(--cyan);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    border-radius: 8px;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--cyan-light);
    border-radius: 8px;
    z-index: -1;
    transition: var(--transition);
}

.image-wrapper:hover::before {
    top: 10px;
    left: 10px;
}

.portrait-placeholder {
    font-size: 6rem;
    color: var(--bg-white);
    opacity: 0.5;
}

/* 3. Section: About */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.about-block h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--cyan);
}

.about-image-container {
    position: relative;
}

.about-img {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--slate);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.about-img.off-center {
    transform: rotate(3deg) translateY(20px);
}

.about-img:hover {
    transform: rotate(0) translateY(0);
    box-shadow: var(--shadow-lg);
}

/* 4. Section: Entrepreneurial Ventures */
.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.venture-card {
    background-color: var(--bg-main);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.venture-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cyan);
}

.venture-icon {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.venture-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.venture-card p {
    flex-grow: 1;
    font-size: 1rem;
}

.venture-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--cyan);
    margin-top: 1.5rem;
}

.venture-link:hover {
    gap: 0.8rem;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--navy);
    color: var(--cyan-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.upcoming {
    opacity: 0.8;
}

/* 5. Section: Technical & Engineering */
.engineering-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.eng-block {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--navy);
}

.eng-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.eng-icon {
    font-size: 2rem;
    color: var(--cyan);
}

.eng-header h3 {
    font-size: 1.6rem;
}

.eng-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.eng-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.eng-list li i {
    color: var(--cyan);
    font-size: 0.9rem;
}

.eng-desc {
    margin-bottom: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background-color: var(--bg-main);
    color: var(--navy);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* 6. Section: Skills & Tools */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--bg-main);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skill-category h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.skill-category h4 i {
    color: var(--cyan);
}

.skill-tags {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-tags span {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.skill-tags span::before {
    content: '▹';
    color: var(--cyan);
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* 7. Section: Contact (Footer) */
.contact-section {
    background-color: var(--navy);
    color: var(--bg-white);
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.contact-title {
    color: var(--bg-white);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.contact-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--slate);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.contact-form {
    background-color: var(--navy-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--navy);
    border: 1px solid var(--slate);
    border-radius: 4px;
    color: var(--bg-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate);
}

.contact-form .btn-primary {
    background-color: var(--cyan-light);
    color: var(--navy);
    border-color: var(--cyan-light);
    font-weight: 700;
}

.contact-form .btn-primary:hover {
    background-color: transparent;
    color: var(--cyan-light);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--slate);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--cyan-light);
    transform: translateY(-3px);
}

.copyright p {
    color: var(--slate);
    font-size: 0.9rem;
    margin: 0;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-container,
    .about-grid,
    .engineering-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .about-img.off-center {
        transform: none;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .eng-block {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
