@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- DESIGN SYSTEM & SYSTEM VARIABLES --- */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Common Tokens */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --container-max-width: 1200px;
    --header-height: 80px;

    /* Theme-specific (Default: Light Mode) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-cyan: #0ea5e9;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(15, 23, 42, 0.06);
    --card-glow: rgba(14, 165, 233, 0.04);
    --shadow-color: rgba(15, 23, 42, 0.06);
    --scrollbar-bg: #f1f5f9;
    --scrollbar-thumb: #cbd5e1;
}

[data-theme="dark"] {
    --bg-primary: #08070d;
    --bg-secondary: #0f0e17;
    --bg-tertiary: #171527;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #00f2fe;
    --accent-purple: #9b51e0;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9b51e0 100%);
    --card-bg: rgba(15, 14, 23, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-glow: rgba(0, 242, 254, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --scrollbar-bg: #0c0a15;
    --scrollbar-thumb: #232038;
}

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

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

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

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

button, input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
    background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9b51e0 0%, #4facfe 50%, #00f2fe 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    border: 1px solid var(--card-border);
    background-color: var(--card-bg);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Background Ambient Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
}

.orb-2 {
    bottom: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    animation-delay: -5s;
}

/* --- NAVBAR STYLES --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .navbar {
    background-color: rgba(8, 7, 13, 0.7);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: inline-block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

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

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform var(--transition-normal);
}

[data-theme="dark"] .theme-toggle-btn svg {
    transform: rotate(45deg);
}

.moon-icon {
    display: none;
}

.sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* --- HERO SECTION --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 40px);
}

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

.hero-content {
    max-width: 650px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.tag-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.hero-blob {
    position: absolute;
    width: 110%;
    height: 110%;
    background: var(--accent-gradient);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.2;
    filter: blur(20px);
    animation: morphing 12s infinite alternate ease-in-out;
    z-index: -1;
}

.hero-img-card {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px var(--shadow-color);
    background-color: var(--card-bg);
    aspect-ratio: 1;
    max-width: 380px;
    width: 100%;
}

.hero-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* --- ABOUT & SKILLS --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: var(--accent-cyan);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.skill-category {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.skill-category-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-category-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent-cyan);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.skill-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 20px var(--shadow-color), 0 0 15px var(--card-glow);
}

.skill-card svg {
    width: 32px;
    height: 32px;
    transition: transform var(--transition-fast);
}

.skill-card:hover svg {
    transform: rotate(5deg) scale(1.1);
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* --- PROJECTS SECTION --- */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

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

.project-card {
    border-radius: var(--border-radius-lg);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: transform var(--transition-slow), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px var(--shadow-color), 0 0 25px var(--card-glow);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 7, 13, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity var(--transition-normal);
}

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

.project-link-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #08070d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-link-btn:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    transform: scale(1.1);
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 4px;
    border: 1px solid var(--card-border);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
    margin-top: auto;
}

.project-link-anchor {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.project-link-anchor:hover {
    color: var(--accent-cyan);
}

.project-link-anchor svg {
    width: 16px;
    height: 16px;
}

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

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

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

.timeline-item:last-child {
    margin-bottom: 0;
}

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

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

.timeline-dot {
    position: absolute;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-cyan);
    z-index: 1;
}

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

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

.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 28px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 25px var(--shadow-color);
    position: relative;
    transition: transform var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-tertiary);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 16px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

.timeline-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- CERTIFICATIONS COMPONENT STYLES --- */
.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
}

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

.timeline-item-right .cert-skills {
    justify-content: flex-start;
}

.cert-skill-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    background-color: var(--bg-tertiary);
    color: var(--accent-cyan);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.cert-skill-tag:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--card-glow);
    transform: translateY(-1px);
}

.cert-thumbnail-wrapper {
    position: relative;
    width: 240px;
    height: 150px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border);
    cursor: pointer;
    margin-top: 16px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all var(--transition-normal);
}

.timeline-item-left .cert-thumbnail-wrapper {
    margin-left: auto;
}

.timeline-item-right .cert-thumbnail-wrapper {
    margin-right: auto;
}

.cert-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.cert-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 7, 13, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.cert-thumbnail-wrapper:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 24px var(--shadow-color), 0 0 15px var(--card-glow);
}

.cert-thumbnail-wrapper:hover .cert-thumbnail {
    transform: scale(1.05);
}

.cert-thumbnail-wrapper:hover .cert-hover-overlay {
    opacity: 1;
}

.cert-zoom-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-cyan);
    transition: transform var(--transition-normal);
}

.cert-thumbnail-wrapper:hover .cert-zoom-icon {
    transform: scale(1.1);
}

.cert-view-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Lightbox Modal */
.cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(8, 7, 13, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

.cert-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.1);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

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

.cert-modal-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.cert-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: all var(--transition-fast);
    z-index: 1010;
}

.cert-modal-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info-desc {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px 24px;
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-normal);
}

.contact-method-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-tertiary);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-icon svg {
    width: 24px;
    height: 24px;
}

.contact-method-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-method-value {
    font-weight: 600;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-link:hover {
    color: #ffffff;
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.form-label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-normal);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    left: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background-color: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* Validation Feedback States */
.form-input.error {
    border-color: #ef4444;
}

.form-input.success {
    border-color: #22c55e;
}

.form-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 600;
    display: none;
}

.form-input.error ~ .form-error-msg {
    display: block;
}

.form-feedback-overlay {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    display: none;
    animation: fadeIn var(--transition-normal);
}

.form-feedback-overlay.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    display: block;
}

.form-feedback-overlay.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    display: block;
}

/* --- FOOTER SECTION --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
    background-color: var(--bg-secondary);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

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

/* --- SCROLL ANIMATIONS AND REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- KEYFRAME ANIMATIONS --- */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 10%) scale(1.05);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 242, 254, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

@keyframes morphing {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    34% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }
    67% {
        border-radius: 50% 60% 30% 70% / 60% 40% 60% 30%;
    }
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE DESIGN (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .about-wrapper, .contact-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 60px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--card-border);
    }

    .nav-menu.active {
        left: 0;
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-stats {
        margin-top: 30px;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

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

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

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

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-card {
        padding: 24px;
    }
}
