/* Global Styles */
:root {
    --primary-color: #1a2a3a;
    /* Navy Blue */
    --accent-color: #c4a47c;
    /* Gold/Beige */
    --text-color: #333;
    --bg-light: #f4f6f8;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from huge angles */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
header {
    background-color: var(--primary-color);
    /* Dark header now to match hero */
    padding: 20px 0;
    color: var(--white);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    font-weight: 300;
    color: var(--accent-color);
}

/* Angled Hero Section */
.hero {
    position: relative;
    padding: 80px 0 180px 0;
    /* Huge bottom padding to make room for overlap */
    background-color: var(--primary-color);
    color: var(--white);
    /* Create the angle at the bottom */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    overflow: hidden;
}

/* Decorative huge circle/shape for more "Future" look */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 450px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    /* Rounded buttons for modern look */
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #b3936b;
    transform: translateY(-2px);
}

/* Hero Image on the Right */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    /* Circular profile for this layout */
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Floating Projects Section */
.floating-projects {
    position: relative;
    margin-top: -120px;
    /* Pull up to overlap hero */
    z-index: 100;
    padding-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(196, 164, 124, 0.1);
    /* Light Accent */
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.5rem;
    font-weight: bold;
}

.project-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.project-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.btn-link:hover {
    border-bottom-color: var(--accent-color);
}

.more-projects {
    text-align: center;
    margin-top: 50px;
}

/* About Section */
.about-section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 1.1rem;
}

/* Skills Grid (Boxed) */
.skills-section {
    padding: 60px 0;
    background-color: var(--white);
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
    }
}

.skill-category {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
    border-bottom: 2px solid rgba(196, 164, 124, 0.3);
    padding-bottom: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-box {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-box:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Education Section */
.education-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.education-timeline {
    max-width: 800px;
    margin: 40px auto 0 auto;
    position: relative;
    padding-left: 30px;
    text-align: left;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--accent-color);
}

.education-item {
    position: relative;
    margin-bottom: 40px;
}

.edu-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--accent-color);
    border: 3px solid var(--bg-light);
    border-radius: 50%;
    z-index: 1;
}

.edu-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 5px;
}

.institution {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.duration {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* Certifications Section */
.certifications-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cert-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cert-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cert-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Footer */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 40px 0;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-text p {
    color: #aaa;
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #888;
}

.socials a {
    margin-left: 20px;
    color: #fff;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero {
        text-align: center;
        padding-bottom: 120px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .hero .container {
        flex-direction: column-reverse;
        /* Image on top on mobile */
        gap: 30px;
    }

    .hero-image-wrapper {
        justify-content: center;
    }

    .hero-image {
        width: 180px;
        height: 180px;
    }

    .floating-projects {
        margin-top: -60px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .contact-text h2 {
        font-size: 2rem;
    }
}

/* Contact Form Page Styles */
.form-page-section {
    padding: 80px 0;
    min-height: 60vh;
    /* Ensure it takes up good screen space */
    background-color: var(--white);
    text-align: center;
}

.form-subtitle {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #666;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(196, 164, 124, 0.1);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* Navigation Side-Panel (IDE-Style) */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Transparent backdrop */
    backdrop-filter: blur(4px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: var(--primary-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 60px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1);
    z-index: 3001;
}

.nav-overlay.active .nav-content {
    transform: translateX(0);
}

.nav-close {
    align-self: flex-end;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    margin-bottom: 40px;
    transition: color 0.3s, transform 0.3s;
}

.nav-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.nav-menu ul {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    margin-bottom: 25px;
}

.nav-menu li a {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.nav-menu li a:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .nav-menu ul li a {
        font-size: 1.5rem;
    }
}