/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Dark Theme Variables (Default) */
    --bg-color: #050b14;
    --bg-grid: rgba(255, 255, 255, 0.02);
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --card-bg: rgba(9, 21, 39, 0.6);
    --card-border: rgba(14, 165, 233, 0.1);
    --card-hover-bg: rgba(13, 31, 58, 0.8);
    --card-hover-border: rgba(14, 165, 233, 0.4);
    
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.3);
    --secondary: #14b8a6;
    --secondary-glow: rgba(20, 184, 166, 0.3);
    --accent-grad: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(12px);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-color: #f0f7ff;
    --bg-grid: rgba(2, 132, 199, 0.04);
    --text-color: #0f172a;
    --text-muted: #475569;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(2, 132, 199, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.9);
    --card-hover-border: rgba(2, 132, 199, 0.3);
    
    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.15);
    --secondary: #0d9488;
    --secondary-glow: rgba(13, 148, 136, 0.15);
    --accent-grad: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* ==========================================================================
   GLOBAL LAYOUTS & BACKGROUNDS
   ========================================================================== */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -10;
    pointer-events: none;
}

.blob-glow {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -9;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

body.light-theme .blob-glow {
    opacity: 0.06;
}

.blob-1 {
    top: -10%;
    right: -10%;
    background-color: var(--primary);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    background-color: var(--secondary);
}

.blob-3 {
    top: 40%;
    left: 30%;
    background-color: var(--primary);
    width: 30vw;
    height: 30vw;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-grad);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   CARDS & BUTTONS
   ========================================================================== */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    background-color: var(--card-hover-bg);
    box-shadow: var(--shadow-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-grad);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border-color: var(--card-border);
}

.btn-secondary:hover {
    background: var(--card-border);
    color: var(--text-color);
    border-color: var(--text-muted);
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
}

.btn-icon:hover {
    background: var(--accent-grad);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.1);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 11, 15, 0.4);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all var(--transition-normal);
}

body.light-theme .navbar {
    background-color: rgba(248, 250, 252, 0.5);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(11, 11, 15, 0.85);
}

body.light-theme .navbar.scrolled {
    background-color: rgba(248, 250, 252, 0.9);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

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

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    border: 1px solid var(--card-border);
}

.theme-toggle:hover {
    background-color: var(--card-border);
}

body.light-theme .moon-icon {
    display: none;
}

body:not(.light-theme) .sun-icon {
    display: none;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 110px 20px 60px 20px;
    min-height: auto;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--text-color);
    min-height: 40px; /* Prevent layout shift during typing while allowing wrapping */
}

.typewriter::after {
    content: '|';
    animation: blink 0.8s infinite;
    color: var(--primary);
    margin-left: 2px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.social-icon:hover {
    color: #ffffff;
    background: var(--accent-grad);
    transform: translateY(-3px) rotate(8deg);
    border-color: transparent;
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* Hero Profile Frame */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-frame {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    padding: 10px;
    background: var(--accent-grad);
    box-shadow: 0 10px 30px var(--primary-glow);
    animation: float 6s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 5px solid var(--bg-color);
}

/* ==========================================================================
   SECTION COMMON ELEMENTS
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   ABOUT & SKILLS SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 25px;
}

.about-info h3, .skills-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 10px;
}

.about-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.info-list {
    list-style: none;
    margin-bottom: 30px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.info-list li i {
    color: var(--primary);
    width: 18px;
}

.info-list li strong {
    color: var(--text-color);
}

.info-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-list a:hover {
    color: var(--secondary);
}

.resume-btn {
    align-self: flex-start;
}

/* Skills category */
.skill-category-block {
    margin-bottom: 25px;
}

.category-title {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-name i {
    color: var(--secondary);
    font-size: 0.95rem;
    width: 15px;
    text-align: center;
}

.skill-percentage {
    color: var(--text-muted);
}

.skill-bar-bg {
    height: 6px;
    background-color: var(--card-border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--accent-grad);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* ==========================================================================
   EXPERIENCE TIMELINE SECTION
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--card-border);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 25px 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    top: 0;
}

.timeline-dot i {
    color: var(--primary);
    font-size: 0.95rem;
}

.timeline-item.left .timeline-dot {
    right: -22px;
}

.timeline-item.right .timeline-dot {
    left: -22px;
}

.timeline-content {
    position: relative;
    padding: 24px;
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-item.left .timeline-date {
    justify-content: flex-end;
}

.timeline-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.badge-work {
    background-color: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-education {
    background-color: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-certificate {
    background-color: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

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

.timeline-org {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.timeline-loc {
    font-weight: 400;
    color: var(--text-muted);
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-grad);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--primary-glow);
}

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

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card.hidden {
    display: none;
}

.project-img-container {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
    background-color: #1a1a24;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 15, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 15px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.project-card:hover .project-actions {
    transform: translateY(0);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.project-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tag {
    background-color: var(--card-border);
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 25px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-card a:hover {
    color: var(--secondary);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-container {
    padding: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input, .form-group textarea {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

body.light-theme .form-group input, body.light-theme .form-group textarea {
    background-color: rgba(0, 0, 0, 0.02);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px var(--primary-glow);
}

body.light-theme .form-group input:focus, body.light-theme .form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.9);
}

.submit-btn {
    width: 100%;
    border: none;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 20px;
    background-color: rgba(11, 11, 15, 0.5);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

body.light-theme .footer {
    background-color: rgba(240, 244, 248, 0.5);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

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

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

.footer-design i {
    color: #ef4444;
}

/* ==========================================================================
   PORTFOLIO MODAL DETAIL STYLING
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    background-color: var(--bg-color);
    border: 1px solid var(--card-border);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 20px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 15;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: transparent;
}

.modal-content-area {
    padding: 40px;
}

.modal-body-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.modal-image-panel img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
}

.modal-info-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-full-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-info-panel h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.modal-tag {
    background-color: var(--card-border);
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.modal-links {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   TOAST NOTIFICATION STYLING
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    transform: translateY(50px);
    opacity: 0;
    animation: toast-in 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.toast.toast-success {
    border-left: 4px solid #10b981;
}

.toast.toast-success i {
    color: #10b981;
}

.toast.toast-error {
    border-left: 4px solid #ef4444;
}

.toast.toast-error i {
    color: #ef4444;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes toast-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-description {
        margin: 0 auto 35px auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-socials {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item.left {
        text-align: left;
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 8px;
    }
    
    .timeline-item.left .timeline-date {
        justify-content: flex-start;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 999;
        border-top: 1px solid var(--card-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    /* Hamburger anim when active */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
