/* Modern CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties */
:root {
    --primary-color: #1a365d;    /* Deep medical blue */
    --secondary-color: #4fd1c5;  /* Teal medical */
    --bg-color: #0a192f;        /* Dark blue background */
    --text-color: #e2e8f0;      /* Light text */
    --accent-color: #63b3ed;    /* Light medical blue */
    --transition: all 0.3s ease;
}

/* Theme Variables */
:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1a365d;
    --text-secondary: #4a5568;
    --accent-primary: #4fd1c5;
    --accent-secondary: #38b2ac;
    --border-color: #e2e8f0;
}

:root[data-theme="dark"] {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --accent-primary: #64ffda;
    --accent-secondary: #4fd1c5;
    --border-color: #2d3748;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--text-color);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: var(--transition);
}

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

/* Hero Section Styles */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-background {
    position: absolute;
    inset: 0; /* Shorthand for top: 0, right: 0, bottom: 0, left: 0 */
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind the content */
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(var(--bg-primary-rgb), 0.92),
        rgba(var(--bg-primary-rgb), 0.85)
    );
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(45deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profession {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

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

.profession .separator {
    color: var(--text-secondary);
    font-weight: 300;
}

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

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
}

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

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

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

.profile-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 30px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.expertise-card {
    background: rgba(var(--bg-secondary-rgb), 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.card-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(var(--accent-rgb), 0.2);
}

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

.expertise-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.expertise-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-stack span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-primary);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-indicator i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: 5rem 1rem 3rem;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .profession {
        font-size: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-description {
        font-size: 1rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem;
    }
}

/* Action Cards Redesign */
.action-card {
    background: rgba(var(--bg-secondary-rgb), 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
    min-height: 280px;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(var(--accent-rgb), 0.1),
        rgba(var(--accent-rgb), 0)
    );
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.action-card:hover::before {
    transform: translateX(0);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-primary), rgba(var(--accent-rgb), 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--bg-primary);
}

.action-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
}

.action-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.action-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.card-tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.action-card:hover .card-tags span {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.action-link {
    color: var(--accent-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card:hover .action-link {
    opacity: 1;
    transform: translateY(0);
}

.action-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.action-card:hover .action-link i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 1rem 1rem;
    }

    .hero-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .action-card {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem;
        margin: 0 -1rem;
    }

    .action-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-height: 280px;
    }

    .card-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 1200px;
}

.action-card {
    background: rgba(26, 54, 93, 0.8);
    border: 1px solid rgba(79, 209, 197, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), rgba(26, 54, 93, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 209, 197, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.action-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.action-card:hover i {
    transform: scale(1.1);
}

.action-card h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.action-card p {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.action-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.action-link:hover {
    gap: 0.75rem;
}

.action-link i {
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 2rem;
    }

    .action-card {
        padding: 1.25rem;
    }

    .action-card h3 {
        font-size: 1.1rem;
    }

    .action-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Mobile Action Cards Container */
@media (max-width: 768px) {
    .cursor {
        display: none !important;
    }

    .action-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 1rem 0;
        gap: 1rem;
        position: relative;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .action-cards::-webkit-scrollbar {
        display: none;
    }

    .action-card {
        flex: 0 0 80%;
        scroll-snap-align: center;
        min-width: 250px;
        margin: 0;
        transform: none !important;
    }

    .action-card:hover {
        transform: none !important;
    }

    /* Navigation Buttons for Action Cards */
    .action-nav-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .action-nav-button {
        background: var(--accent-primary);
        color: var(--bg-primary);
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        cursor: pointer;
        transition: var(--transition);
    }

    .action-nav-button:hover {
        background: var(--accent-secondary);
    }

    .action-cards-container {
        position: relative;
        padding: 0 1rem;
    }
}

/* Logo Size Adjustment */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Sections */
section {
    padding: 5rem 2rem;
    min-height: 100vh;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

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

.project-card {
    background: rgba(26, 54, 93, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 1.5rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-tech span {
    background: rgba(79, 209, 197, 0.1);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Skills Section */
.about-images-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.about-images-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 1rem;
    scroll-behavior: smooth;
}

.about-images-scroll::-webkit-scrollbar {
    display: none;
}

.image-item {
    flex: 0 0 400px;
    height: 300px;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: scale(1);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.image-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    opacity: 1;
    background: var(--accent-primary);
    transform: scale(1.2);
}

.skills {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, rgba(var(--accent-primary-rgb), 0.1), rgba(var(--text-primary-rgb), 0.1));
    transform: skewY(-6deg);
    transform-origin: top left;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.skills-column {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    text-align: center;
    position: relative;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: 50%;
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-progress {
    height: 6px;
    background: rgba(var(--text-secondary-rgb), 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    animation: progressAnimation 1s ease forwards;
}

@keyframes progressAnimation {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Skills Section Mobile Styles */
@media (max-width: 768px) {
    .skills-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 1rem 0;
        gap: 1.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -1rem;
        padding: 1rem;
    }

    .skills-container::-webkit-scrollbar {
        display: none;
    }

    .skills-column {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
        margin: 0;
        background: var(--bg-secondary);
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .skills-nav-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .skills-nav-button {
        background: var(--accent-primary);
        color: var(--bg-primary);
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .skills-nav-button:hover {
        background: var(--accent-secondary);
    }

    .skills-nav-button i {
        font-size: 0.8rem;
    }

    .skills-progress {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .progress-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--text-secondary);
        opacity: 0.3;
        transition: opacity 0.3s ease;
    }

    .progress-dot.active {
        opacity: 1;
        background: var(--accent-primary);
    }
}

/* Contact Section */
.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-details {
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(26, 54, 93, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details i {
    color: var(--secondary-color);
}

/* Contact Form */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    color: var(--text-color);
}

.submit-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Background Video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

/* Section Backgrounds */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.section-texture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.section-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

/* Profile Image */
.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.3);
    animation: float 3s ease-in-out infinite;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.1);
}

/* Logo */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

/* About Image */
.about-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.certification-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite reverse;
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer */
.footer-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.footer-texture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
}

/* Loading Screen */
.loading-screen img {
    width: 80px;
    height: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }

    .about-image {
        max-width: 300px;
    }

    .certification-badge {
        width: 60px;
        height: 60px;
    }
}

/* Enhanced Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

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

/* Testimonials Improvements */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    margin-top: auto;
}

.testimonial-author h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

/* Footer Logo Adjustment */
.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .typewriter {
        font-size: 1rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Blog Section Improvements */
.blog {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.section-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.section-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.blog-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

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

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    gap: 0.75rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-intro h2 {
        font-size: 2rem;
    }

    .section-intro p {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .blog-image {
        height: 140px;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .section-intro h2 {
        font-size: 1.75rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-image {
        height: 180px;
    }
}

/* About Section Styles */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

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

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.image-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-item:first-child {
    grid-column: span 2;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-item:hover .about-img {
    transform: scale(1.1);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-item:hover .image-caption {
    transform: translateY(0);
}

/* Contact Section Styles */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.contact-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.contact-form-container {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem);
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--text-primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .image-item:first-child {
        grid-column: auto;
    }

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

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .image-item {
        flex: 0 0 300px;
        height: 225px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .skills-column:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .image-item {
        flex: 0 0 250px;
        height: 188px;
    }

    .image-overlay h3 {
        font-size: 1.2rem;
    }

    .image-overlay p {
        font-size: 0.9rem;
    }
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.nav-btn i {
    font-size: 1.2rem;
}

/* Responsive styles for navigation buttons */
@media (max-width: 768px) {
    .nav-btn {
        width: 35px;
        height: 35px;
    }

    .nav-btn i {
        font-size: 1rem;
    }

    .prev-btn {
        left: 0.5rem;
    }

    .next-btn {
        right: 0.5rem;
    }
}

/* Comprehensive Mobile-Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links a {
        margin: 0.5rem 0;
        display: block;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-intro h2 {
        font-size: 1.8rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .skills-category {
        padding: 1rem;
    }
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    background-color: var(--bg-primary);
    position: relative;
}

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

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

.section-subtitle {
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: rgba(var(--bg-secondary-rgb), 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.project-content {
    padding: 2rem;
}

.project-header {
    margin-bottom: 1.5rem;
}

.project-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    padding: 0.3rem 0.8rem;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.feature i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateX(5px);
}

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

@media (max-width: 768px) {
    .projects {
        padding: 4rem 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-features {
        grid-template-columns: 1fr;
    }
}

.projects, .about, .contact {
    background: var(--bg-primary);
}
