/* Modern Color Palette & Variables - v1.1.2 */
:root {
    --bg-color: #0f172a;
    /* Slate 900 */
    --card-bg: #1e293b;
    /* Slate 800 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent-primary: #8b5cf6;
    /* Violet 500 */
    --accent-secondary: #06b6d4;
    /* Cyan 500 */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --hover-color: #7c3aed;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glass-blur: blur(16px);
    --glass-highlight: rgba(255, 255, 255, 0.1);
}

/* Glass Utility Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
    opacity: 0.5;
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

.dot {
    color: var(--accent-secondary);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--accent-secondary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for fixed nav */
    background:
        radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 1), rgba(2, 6, 23, 1));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    filter: blur(120px);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
    animation: floating-blob 20s infinite alternate;
}

@keyframes floating-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-100px, 100px) scale(1.2);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right,
            #fff 20%,
            var(--accent-secondary) 40%,
            var(--accent-primary) 60%,
            #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    /* Ensure text is above glass */
    position: relative;
    z-index: 2;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-subtitle .divider {
    color: var(--accent-primary);
    margin: 0 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Staggered Entrance for Hero */
.hero-content .greeting {
    animation: fadeInDown 0.8s ease-out forwards;
}

.hero-content .hero-title {
    animation: fadeInDown 0.8s ease-out 0.2s forwards, shine 5s linear infinite;
    opacity: 0;
}

.hero-content .hero-subtitle {
    opacity: 0;
    /* Handled by JS typewriter */
}

.hero-content .hero-description {
    animation: fadeInUp 0.8s ease-out 1.5s forwards;
    opacity: 0;
}

.hero-btns {
    animation: fadeInUp 0.8s ease-out 1.8s forwards;
    opacity: 0;
    margin-bottom: 2rem;
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 2s forwards;
    opacity: 0;
}

.hero-social a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.hero-social a svg {
    display: block;
}

.hero-social a:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.image-blob {
    position: absolute;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #f43f5e 100%);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 1;
    animation: blob-complex 10s infinite alternate;
}

@keyframes blob-complex {
    0% {
        transform: scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50%;
    }

    33% {
        transform: scale(1.1) rotate(120deg);
        border-radius: 30% 70% 70% 30%;
    }

    66% {
        transform: scale(0.9) rotate(240deg);
        border-radius: 70% 30% 30% 70%;
    }

    100% {
        transform: scale(1) rotate(360deg);
        border-radius: 50% 50% 50% 50%;
    }
}

/* Tablet & Mobile Responsive */
@media (max-width: 968px) {
    .container {
        width: 95%;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        margin: 0 auto;
        order: 2;
    }

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

    .hero-image-wrapper {
        order: 1;
    }

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

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        padding: 0 1rem !important;
        max-width: 100% !important;
    }

    .nav-links {
        height: 0;
        overflow: hidden;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 3rem;
        text-align: center;
    }

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

    .hero-content {
        width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: 2rem;
        word-wrap: break-word;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        display: block;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle .divider {
        display: inline;
        margin: 0 5px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin: 0 !important;
        text-align: center;
    }

    .hero-img {
        width: 180px !important;
        height: 180px !important;
    }

    .image-blob {
        width: 250px !important;
        height: 250px !important;
    }

    .hero-social {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-social a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Section Common Styles */
.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: #172033;
    /* Slightly lighter/different shade for contrast */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.title-bar {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.education-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .education-card {
        padding: 1rem;
        gap: 1rem;
    }

    .edu-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

.education-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.edu-icon {
    font-size: 2rem;
    background: rgba(139, 92, 246, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.edu-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.edu-details p {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.edu-details .year {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Changed to 2x2 grid for better mobile/tablet view or adjust */
    gap: 1.5rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: 3px solid var(--accent-primary);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

#stats .stat-card {
    background: var(--card-bg);
}

#stats .stat-card {
    background: var(--glass-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: none;
    border: 1px solid var(--glass-border);
    /* ... rest of properties ... */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

#stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

#stats .stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

#stats .stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 3.5rem;
    background: rgba(255, 255, 255, 0.03);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

#stats .stat-card:hover .stat-icon {
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.1);
}

.stat-info h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.stat-link {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--accent-secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.stat-link:hover {
    background: var(--accent-secondary);
    color: white;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(6, 182, 212, 0.3);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--accent-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-category:hover .skill-tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent-primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
}

#stats .stat-card.certificate-card {
    gap: 1rem;
    padding: 2rem 1.5rem;
}

.certificate-img-wrapper {
    width: 100%;
    height: 250px;
    /* Increased height for better visibility */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Ensures faces are prioritized over the bottom portion */
    transition: transform 0.5s ease;
}

.certificate-img-wrapper:hover .cert-img {
    transform: scale(1.1);
}

.cert-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

/* Responsive updates for new sections */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        margin-top: 2rem;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-secondary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--tag-color);
    color: var(--text-primary);
}

.project-card:not(.placeholder):hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent-primary);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.project-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

.project-card.placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    /* Consistent height */
    transition: var(--transition);
}

.project-card.placeholder:hover {
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Contact Section */
.contact-container {
    max-width: 1000px;
    /* Slightly narrower for focus */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.details h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.details a {
    color: var(--accent-secondary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon svg {
    display: block;
}

.social-icon:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
    color: white;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(15, 23, 42, 0.8);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.footer-links a {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin: 0 0.8rem;
    }
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Mobile Menu Styles (Enhanced) */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: fixed;
        top: 70px;
        /* Below navbar */
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        transition: height 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 999;
    }

    .nav-links.active {
        height: 350px;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .menu-toggle {
        display: block;
    }

    /* Hamburger Animation */
    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-primary);
        border-radius: 3px;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }


    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Sci-Fi HUD Loader Styles */
.loader-overlay.scifi-style {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050b14;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    /* Tech feel */
    padding: 20px;
    box-sizing: border-box;
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* HUD Frames */
.hud-frame {
    width: 100%;
    max-width: 800px;
    height: 60px;
    position: relative;
    border-top: 2px solid #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.bottom-frame {
    border-top: none;
    border-bottom: 2px solid #00f3ff;
}

.hud-corner-left,
.hud-corner-right {
    position: absolute;
    width: 100px;
    height: 100%;
    background: #050b14;
    /* Match background to hide line */
    border-bottom: 2px solid #00f3ff;
}

.top-frame .hud-corner-left {
    bottom: -2px;
    left: -20px;
    transform: skewX(45deg);
}

.top-frame .hud-corner-right {
    bottom: -2px;
    right: -20px;
    transform: skewX(-45deg);
}

.bottom-frame .hud-corner-left,
.bottom-frame .hud-corner-right {
    height: 100%;
    border-bottom: none;
    border-top: 2px solid #00f3ff;
}

.bottom-frame .hud-corner-left {
    top: -2px;
    left: -20px;
    transform: skewX(-45deg);
}

.bottom-frame .hud-corner-right {
    top: -2px;
    right: -20px;
    transform: skewX(45deg);
}


/* Content */
.scifi-style .loader-content {
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.scifi-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.loading-status {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.loading-dots {
    letter-spacing: 5px;
    margin-left: 10px;
}

/* Progress Box */
.progress-box {
    width: 100%;
    height: 30px;
    border: 2px solid #0072ff;
    padding: 4px;
    box-shadow: 0 0 15px rgba(0, 114, 255, 0.2);
    position: relative;
}

.scifi-style .progress-bar {
    height: 100%;
    width: 0%;
    background-color: #00f3ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
    transition: width 0.2s linear;
}

/* Decoration stripes */
.hud-frame::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 10px;
    background: repeating-linear-gradient(90deg,
            #00f3ff,
            #00f3ff 2px,
            transparent 2px,
            transparent 10px);
    opacity: 0.5;
}

.top-frame::before {
    top: 10px;
    left: 20px;
}

.bottom-frame::before {
    bottom: 10px;
    right: 20px;
}


@media (max-width: 768px) {
    .scifi-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .hud-frame {
        max-width: 90%;
    }

    .loading-status {
        font-size: 1.2rem;
    }
}