/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #252532;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --border-color: #2a2a3a;
    --success-color: #10b981;
    --transition: all 0.3s ease;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #f1f5f9;
    --bg-hover: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --border-color: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background-color: rgba(248, 250, 252, 0.9);
}

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

.logo {
    display: flex;
    font-weight: 700;
    font-size: 1.5rem;
}

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

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

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: var(--transition);
}

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--accent-primary);
    background-color: var(--bg-hover);
}

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    padding: 1rem;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    background-color: var(--bg-hover);
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.floating-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), transparent);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.bubble-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 15%;
    animation-delay: -5s;
}

.bubble-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 20%;
    animation-delay: -10s;
}

.bubble-4 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 10%;
    animation-delay: -15s;
}

.bubble-5 {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 40%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-greeting {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
}

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

.typing-text {
    color: var(--accent-primary);
    font-weight: 600;
}

.cursor {
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-ring {
    position: absolute;
    inset: 0;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
}

.profile-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    border: 4px solid var(--bg-primary);
}

/* Section Styles */
section {
    padding: 5rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-subtitle {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-title .highlight {
    color: var(--accent-primary);
}

.section-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Skills Section */
.skills {
    background-color: var(--bg-secondary);
}

.skills-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    min-width: 140px;
}

.tab-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tab-btn span:first-of-type {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.tech-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.tab-btn:hover span:first-of-type,
.tab-btn.active span:first-of-type {
    color: white;
}

.tab-btn:hover .tech-count,
.tab-btn.active .tech-count {
    color: rgba(255, 255, 255, 0.7);
}

.skills-content {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background-color: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.skill-badge:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

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

.skill-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.skills-footer {
    text-align: center;
    margin-top: 2rem;
}

.tech-total {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-card);
    border-radius: 50px;
    color: var(--accent-primary);
    font-weight: 600;
    border: 1px solid var(--accent-primary);
}

/* About Section */
.about {
    background: linear-gradient(135deg, #0f172a, #020617);
    padding: 80px 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Card Design */
.about-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Glow Effect */
.about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(0,255,255,0.1), transparent);
    opacity: 0;
    transition: 0.5s;
}

.about-card:hover::before {
    opacity: 1;
}

/* Hover Animation */
.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Icon Styling */
.about-icon {
    min-width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), #00f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,255,255,0.3);
}

/* Text */
.about-text-content h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.about-text-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Highlight */
.text-highlight {
    color: #00f7ff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Experience Section */
.experience {
    background-color: var(--bg-secondary);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.experience-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.company {
    color: var(--accent-primary);
    font-weight: 600;
}

.experience-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

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

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

.location i {
    margin-right: 0.25rem;
}

.experience-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.experience-points li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
}

/* Contact Section */
.contact {
    background-color: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-details h3,
.contact-links h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

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

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

.contact-value:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateX(4px);
}

.social-link i {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .project-card {
        min-width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }

    .tab-btn i {
        margin-bottom: 0;
    }

    .experience-header {
        flex-direction: column;
    }

    .experience-meta {
        align-items: flex-start;
    }

    .education-card {
        flex-direction: column;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .projects-carousel {
        flex-direction: column;
    }

    .carousel-btn {
        display: none;
    }

    .projects-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .project-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 3rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-role {
        font-size: 1.1rem;
    }

    .profile-container {
        width: 200px;
        height: 200px;
    }

    .skill-badge {
        min-width: 100px;
        padding: 1rem;
    }

    .project-card {
        min-width: 280px;
        max-width: 280px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.experience-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.4s, box-shadow 0.4s;
}
.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.projects {
    background: var(--bg-primary);
    padding: 80px 20px;
}

.projects-grid {
    display: flex;
    flex-direction: column; /* single column */
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0; /* for fade-in animation */
    transform: translateY(40px);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-icon {
    font-size: 28px;
    color: #00f7ff;
    background: rgba(0,255,255,0.1);
    padding: 10px;
    border-radius: 12px;
}

.project-title {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.project-tags .tag {
    display: inline-block;
    background: var(--accent-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.view-project-btn {
    text-align: center;
    padding: 8px 12px;
    background: linear-gradient(90deg, #00f7ff, #007bff);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-project-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,255,255,0.4);
}

/* Fade-in animation on scroll */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s forwards;
}

/* Optional: stagger animation with delay */
.projects-grid .project-card:nth-child(1) { animation-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { animation-delay: 0.3s; }
.projects-grid .project-card:nth-child(3) { animation-delay: 0.5s; }
.projects-grid .project-card:nth-child(4) { animation-delay: 0.7s; }

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        gap: 20px;
    }
}

.education {
    background: var(--bg-primary);
    padding: 80px 0;
}

.education-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(0,255,255,0.1), transparent);
    opacity: 0;
    transition: 0.5s;
}

.education-card:hover::before {
    opacity: 1;
}

.education-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.education-icon {
    min-width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), #00f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,255,255,0.3);
}

.education-content h3 {
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.education-content p {
    margin: 4px 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.education-details li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .education-list {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0f172a, #020617);
    padding: 80px 0;
    color: var(--text-secondary);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Contact Card */
.contact-card {
    display: flex;
    gap: 15px;
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
}

/* Hover Animation */
.contact-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0,255,255,0.3);
}

/* Icon Styling */
.contact-icon {
    min-width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), #00f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,255,255,0.3);
}

/* Info */
.contact-info h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-info p,
.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-info a:hover {
    color: var(--accent-primary);
}

/* Social Links inside card */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-links a i {
    margin-right: 8px;
}

/* Footer */
.footer {
    background-color: #020617;
    text-align: center;
    padding: 25px 0;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ===== LOGO IMAGE ===== */
.logo img {
    height: 50px;        /* Control logo size */
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05); /* subtle zoom */
}

/* Align logo properly */
.logo {
    display: flex;
    align-items: center;
}

/* ===== NAV CONTAINER FIX ===== */
.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 12px 30px;

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

/* ===== NAV LINKS CENTER ALIGN ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

/* ===== RIGHT SIDE BUTTONS ===== */
.theme-toggle,
.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
    color: #333;
    transition: 0.3s;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

    .logo img {
        height: 40px; /* smaller logo on mobile */
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;

        flex-direction: column;
        gap: 20px;
        padding: 20px 0;

        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}