/* Global Reset & Theme Variables */
:root {
    --bg-darker: #060709;
    --bg-dark: #0b0d13;
    --bg-card: rgba(15, 22, 36, 0.45);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 242, 254, 0.25);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.15);
    --secondary: #6366f1;
    --secondary-glow: rgba(99, 102, 241, 0.15);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

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

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

/* Background Effects */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.25;
    z-index: -2;
    pointer-events: none;
    mix-blend-mode: screen;
}

.glow-1 {
    width: 40vw;
    height: 40vw;
    top: -10vw;
    right: -5vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-2 {
    width: 50vw;
    height: 50vw;
    bottom: -15vw;
    left: -10vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Preloader Wrapper */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-darker);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.loader-text-wrapper {
    text-align: center;
    width: 240px;
}

.loader-text {
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: bold;
}

.loader-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Navigation Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 1000;
    background: rgba(6, 7, 9, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background: rgba(6, 7, 9, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 550;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-quick);
}

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

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition-smooth);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Sections */
.main-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4%;
}

.section {
    padding: 120px 0 60px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.section-sub {
    font-family: monospace;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 16px auto 0 auto;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: -30px auto 40px auto;
    font-size: 1.05rem;
}

.text-center {
    text-align: center;
}

/* Badges & Buttons */
.badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-darker);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 242, 254, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.w-full {
    width: 100%;
    justify-content: center;
}

/* Typography Gradient */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* HERO SECTION */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-info {
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

.typed-text {
    color: var(--primary);
    font-weight: 600;
    border-right: 2px solid var(--primary);
    padding-right: 4px;
    animation: blink 0.75s step-end infinite;
}

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

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* 3D Showcase Card in Hero */
.hero-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.card-3d-container {
    width: 100%;
    max-width: 440px;
    height: 480px;
    transform-style: preserve-3d;
}

.card-3d {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 242, 254, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.card-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
    z-index: 2;
}

.card-header-console {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    transform: translateZ(30px);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.console-title {
    margin-left: 8px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.console-body {
    flex-grow: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateZ(40px);
    line-height: 1.5;
}

.cmd-prompt {
    color: var(--primary);
}

.console-output {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.json-code {
    font-family: 'Courier New', Courier, monospace;
}

.json-key {
    color: #818cf8;
}

.json-val {
    color: #34d399;
}

.cursor-blink {
    animation: blink-cursor 1s step-end infinite;
}

.card-footer-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    transform: translateZ(50px);
}

.stat-box {
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-card-3d-wrapper {
    perspective: 1200px;
    width: 100%;
}

.about-card-3d {
    width: 100%;
    max-width: 380px;
    height: 380px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease-out;
}

.about-card-inner {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform-style: preserve-3d;
}

.profile-img-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
    overflow: hidden;
    margin-bottom: 24px;
    transform: translateZ(50px);
    transition: var(--transition-smooth);
    background: rgba(0, 0, 0, 0.2);
}

.about-card-3d:hover .profile-img-container {
    box-shadow: 0 0 35px var(--primary);
    transform: translateZ(65px) scale(1.05);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nickname {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--primary) !important;
    margin-bottom: 8px;
    transform: translateZ(25px);
}

.school-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transform: translateZ(20px);
}

.about-card-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
    transform: translateZ(30px);
}

.card-3d-depth-element {
    position: absolute;
    bottom: -15px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    transform: translateZ(-20px);
    user-select: none;
    pointer-events: none;
}

.about-text-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip i {
    color: var(--primary);
}

/* SKILLS SECTION */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1200px;
}

.skill-card-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-smooth), transform 0.15s ease-out;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    cursor: pointer;
}

.skill-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 25px 45px rgba(0, 242, 254, 0.08);
}

.skill-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.skill-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transform: translateZ(35px);
    transition: var(--transition-smooth);
}

/* Accent colors for skill icons */
.js-color { color: #f0db4f; background: rgba(240, 219, 79, 0.05); border-color: rgba(240, 219, 79, 0.15); }
.node-color { color: #6cc24a; background: rgba(108, 194, 74, 0.05); border-color: rgba(108, 194, 74, 0.15); }
.php-color { color: #777bb4; background: rgba(119, 123, 180, 0.05); border-color: rgba(119, 123, 180, 0.15); }
.html-color { color: #e34c26; background: rgba(227, 76, 38, 0.05); border-color: rgba(227, 76, 38, 0.15); }
.kotlin-color { color: #a97bff; background: rgba(169, 123, 255, 0.05); border-color: rgba(169, 123, 255, 0.15); }
.flutter-color { color: #02569b; background: rgba(2, 86, 155, 0.05); border-color: rgba(2, 86, 155, 0.15); }

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
    transform: translateZ(30px);
}

.skill-level-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 16px;
    transform: translateZ(25px);
}

.skill-bar-wrapper {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    transform: translateZ(20px);
}

.skill-progress-bar {
    width: 0%; /* Initial state for animation */
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-details-3d {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.7;
    transform: translateZ(15px);
    transition: var(--transition-smooth);
}

.skill-card:hover .skill-details-3d {
    opacity: 1;
}

/* PROJECTS SECTION (3D TIMELINE) */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--border-color) 0%, var(--primary) 20%, var(--secondary) 80%, var(--border-color) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
    display: flex;
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--bg-darker);
    border: 3px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: var(--transition-quick);
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: var(--secondary);
}

.timeline-item:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 15px var(--primary);
}

.project-card-3d-container {
    width: 44%;
    perspective: 1000px;
}

.project-card-3d {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth), transform 0.15s ease-out;
}

.project-card-3d:hover {
    border-color: var(--border-hover);
    box-shadow: 0 25px 45px rgba(0, 242, 254, 0.08);
}

.project-img-wrapper {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.project-placeholder-3d {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #131924, #0b0f19);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
}

.floating-grid {
    position: absolute;
    width: 150%;
    height: 150%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotateX(60deg) translateZ(-40px);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.project-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.08);
    transform: translateZ(30px);
    transition: var(--transition-smooth);
}

.js-proj i { color: rgba(240, 219, 79, 0.15); }
.flutter-proj i { color: rgba(2, 86, 155, 0.15); }
.node-proj i { color: rgba(108, 194, 74, 0.15); }

.project-card-3d:hover .project-icon {
    transform: translateZ(50px) scale(1.1);
}
.project-card-3d:hover .floating-grid {
    opacity: 0.7;
    transform: rotateX(60deg) translateZ(-20px);
}

.project-info {
    padding: 24px;
    transform-style: preserve-3d;
}

.project-tags {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    transform: translateZ(15px);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    transform: translateZ(25px);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
    transform: translateZ(20px);
}

.project-link {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translateZ(30px);
    transition: var(--transition-quick);
}

.project-link:hover {
    color: var(--primary);
}

.project-link i {
    font-size: 0.75rem;
}

/* CONTACT SECTION - 3D FLIP CARD */
.contact-flip-wrapper {
    width: 100%;
    max-width: 460px;
    height: 480px;
    margin: 0 auto;
    perspective: 1500px;
}

.contact-flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-flip-card.flipped {
    transform: rotateY(180deg);
}

.contact-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform 0.15s ease-out;
}

.contact-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.contact-side.front {
    pointer-events: auto;
}

.contact-side.back {
    transform: rotateY(180deg);
    pointer-events: none;
}

.contact-flip-card.flipped .contact-side.front {
    pointer-events: none;
}

.contact-flip-card.flipped .contact-side.back {
    pointer-events: auto;
}

/* Front Side Styling */
.contact-info-content {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    position: relative;
    transform-style: preserve-3d;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateZ(30px);
}

.contact-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.05);
    border: 2px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.contact-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
    transform: translateZ(25px);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.detail-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.detail-item span {
    font-size: 0.95rem;
}

#flip-btn-to-back {
    transform: translateZ(40px);
}

/* Back Side Form Styling */
.contact-form-content {
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
    transform-style: preserve-3d;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    transform: translateZ(30px);
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.close-flip-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-quick);
}

.close-flip-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
    transform: translateZ(20px);
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-quick);
}

.input-group textarea {
    resize: none;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.2s ease all;
}

.input-group textarea ~ label {
    top: 24px;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--primary);
    background: #0f141f;
    padding: 0 6px;
    border-radius: 4px;
}

.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--primary);
    background: #0f141f;
    padding: 0 6px;
    border-radius: 4px;
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 60px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-quick);
}

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

/* Typing & Cursor Animation */
@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}

@keyframes blink-cursor {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* Responsive Designs */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-desc {
        margin: 0 auto 40px auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .project-card-3d-container {
        width: calc(100% - 50px);
        margin-left: 50px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 5%;
    }
    
    .nav-links {
        display: none; /* Expandable menu can be implemented if needed */
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
