/* ==========================================================================
   Elegant Tech Portfolio Design System
   Candidate: Shaik Mahaboobunnisa Begum
   ========================================================================== */

/* Typography & Root Variables */
:root {
    --bg-cream: #FAF7F2;
    --bg-white: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    
    --text-dark: #1F242E;
    --text-muted: #5A6275;
    
    /* Rose Gold & Blush Pink Accents */
    --accent-rose: #C88D8D;
    --accent-rose-hover: #B57575;
    --accent-pink-light: #FBF0F0;
    --accent-rose-gold: #D4A373;
    --accent-shadow: rgba(200, 141, 141, 0.25);
    
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', system-ui, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* CSS Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

.section-padding {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

/* Scroll Animation Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative ECE Circuit Overlay */
.circuit-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.circuit-svg {
    width: 100%;
    height: 100%;
}

.circuit-path {
    stroke: var(--accent-rose);
    stroke-width: 1.2px;
    stroke-opacity: 0.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawCircuit 15s linear infinite;
}

.circuit-dot {
    fill: var(--accent-rose);
    fill-opacity: 0.35;
    animation: pulseDot 4s ease-in-out infinite alternate;
}

@keyframes drawCircuit {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.2; }
    100% { transform: scale(1.3); opacity: 0.7; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-rose);
    color: var(--bg-white);
    border: 1px solid var(--accent-rose);
    box-shadow: 0 8px 20px var(--accent-shadow);
}

.btn-primary:hover {
    background-color: var(--accent-rose-hover);
    border-color: var(--accent-rose-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(200, 141, 141, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-rose);
    border: 1px solid var(--accent-rose);
}

.btn-secondary:hover {
    background-color: var(--accent-pink-light);
    transform: translateY(-3px);
}

.btn-card-primary {
    background-color: transparent;
    color: var(--accent-rose);
    border: 1px solid var(--accent-rose);
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-card-primary:hover {
    background-color: var(--accent-rose);
    color: var(--bg-white);
}

/* Header & Glass Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(250, 247, 242, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(200, 141, 141, 0.1);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    background-color: rgba(250, 247, 242, 0.92);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-dark);
}

.logo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-rose);
    border-radius: 50%;
    margin-left: 3px;
    display: inline-block;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.3rem 0;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-rose);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
    z-index: 1;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-greeting {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-rose);
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.highlight-text {
    position: relative;
    display: inline-block;
    color: var(--text-dark);
}

.highlight-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 8px;
    background-color: var(--accent-pink-light);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Circular Headshot Container with shadows */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.hero-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--bg-white);
    box-shadow: 0 20px 45px rgba(200, 141, 141, 0.25);
    z-index: 2;
    position: relative;
}

.hero-circle-accent {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.hero-circle-accent.accent-1 {
    top: -15px;
    left: -15px;
    width: 350px;
    height: 350px;
    border: 1px dashed var(--accent-rose);
    opacity: 0.35;
    animation: rotateDashed 40s linear infinite;
}

.hero-circle-accent.accent-2 {
    bottom: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background-color: var(--accent-pink-light);
    opacity: 0.6;
}

@keyframes rotateDashed {
    100% { transform: rotate(360deg); }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-rose);
    font-size: 1.5rem;
    animation: bounceDown 2s infinite;
    text-decoration: none;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Sections Common Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-rose);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent-rose);
    margin: 0 auto;
    border-radius: 2px;
}

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

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(200, 141, 141, 0.12);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(200, 141, 141, 0.08);
    border-color: rgba(200, 141, 141, 0.25);
}

.card-icon-header {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--accent-pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-rose);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.bio-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.education-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-pink-light);
}

.edu-duration {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-rose);
    display: block;
    margin-bottom: 0.5rem;
}

.edu-degree {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.edu-field {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.edu-institute {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.edu-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background-color: var(--accent-pink-light);
    color: var(--accent-rose);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-column h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

/* Skill Progress Bars */
.skill-bar-wrapper {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-icon {
    color: var(--accent-rose);
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: rgba(200, 141, 141, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-rose-gold), var(--accent-rose));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Strengths Tags */
.strengths-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.strengths-tags .tag {
    background-color: var(--bg-white);
    border: 1px solid rgba(200, 141, 141, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.strengths-tags .tag:hover {
    border-color: var(--accent-rose);
    color: var(--text-dark);
    background-color: var(--accent-pink-light);
    transform: translateY(-2px);
}

.strengths-tags .tag i {
    color: var(--accent-rose);
}

/* Languages */
.languages-title {
    margin-top: 1rem;
}

.languages-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.languages-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.language-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(200, 141, 141, 0.12);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.language-card:hover {
    border-color: var(--accent-rose);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.lang-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-rose);
    font-size: 1rem;
}

.lang-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.lang-bubble {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lang-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-dark) transparent transparent transparent;
}

.language-card.active .lang-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Projects Showcase */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(200, 141, 141, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(200, 141, 141, 0.1);
    border-color: rgba(200, 141, 141, 0.3);
}

.project-image-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--accent-pink-light), #F5E6E8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-image-placeholder.community-bg {
    background: linear-gradient(135deg, #FFF0EE, #F2E3E3);
}

.project-bg-icon {
    font-size: 5rem;
    color: var(--accent-rose);
    opacity: 0.25;
    transition: var(--transition-smooth);
}

.project-card:hover .project-bg-icon {
    transform: scale(1.1);
    opacity: 0.35;
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    border: 1px solid rgba(200, 141, 141, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.project-details {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    margin-bottom: 1.2rem;
}

.project-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-rose);
    display: block;
    margin-bottom: 0.4rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    margin-top: auto;
}

.project-tech span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-cream);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.project-links {
    display: flex;
}

/* Continuous Learning */
.learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.learning-card {
    background: var(--bg-card);
    border: 1px solid rgba(200, 141, 141, 0.12);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.learning-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 141, 141, 0.25);
    box-shadow: 0 15px 40px rgba(200, 141, 141, 0.08);
}

.learning-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.learning-icon {
    font-size: 1.8rem;
    color: var(--accent-rose);
}

.learning-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-dark);
}

.learning-list {
    list-style: none;
}

.learning-list li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.learning-list li:last-child {
    margin-bottom: 0;
}

.list-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-rose);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.list-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.list-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 4rem;
}

.contact-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info-panel > p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 450px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--accent-pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-rose);
    font-size: 1.2rem;
}

.detail-text span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.detail-text a, .detail-text p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.detail-text a:hover {
    color: var(--accent-rose);
}

/* Contact Form Panel */
.contact-form-panel {
    background: var(--bg-white);
    border: 1px solid rgba(200, 141, 141, 0.12);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.contact-form {
    transition: var(--transition-smooth);
}

.contact-form.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.6rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-rose);
    background-color: var(--bg-white);
    box-shadow: 0 0 15px rgba(200, 141, 141, 0.15);
}

.btn-submit {
    width: 100%;
    border: none;
    margin-top: 1rem;
}

.btn-submit .btn-loader {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: inline-block;
}

/* Success Card */
.form-success-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-success-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.success-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--accent-pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-rose);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.form-success-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.form-success-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 320px;
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 36, 46, 0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    padding: 3rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    max-height: 85vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-project-details h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.modal-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-rose);
    font-weight: 600;
    margin-bottom: 2rem;
}

.modal-body {
    color: var(--text-muted);
}

.modal-body h3 {
    color: var(--text-dark);
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.modal-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.modal-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.component-block {
    background-color: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid rgba(200, 141, 141, 0.1);
}

.component-block h4 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.hidden {
    display: none !important;
}

/* Footer Section */
.footer {
    background-color: var(--bg-cream);
    border-top: 1px solid rgba(200, 141, 141, 0.1);
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand .brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 1px solid rgba(200, 141, 141, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-socials a:hover {
    color: var(--bg-white);
    background-color: var(--accent-rose);
    border-color: var(--accent-rose);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--accent-shadow);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Grid Overrides */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        order: 2;
        align-items: center;
    }
    
    .hero-image-wrapper {
        order: 1;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-grid, .skills-grid, .projects-grid, .learning-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-info-panel > p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-cream);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        display: flex;
        flex-direction: column;
        padding: 6rem 3rem;
        transition: var(--transition-smooth);
        z-index: 99;
        gap: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
        z-index: 100;
    }
    
    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .about-card, .contact-form-panel, .learning-card {
        padding: 2rem;
    }
    
    .hero-image-container {
        width: 250px;
        height: 250px;
    }
    
    .hero-circle-accent.accent-1 {
        width: 270px;
        height: 270px;
    }
    
    .languages-container {
        grid-template-columns: 1fr;
    }
}
