/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Variables - Dark Theme (Refined) */
:root {
    --primary-color: #008CBA; /* Cyan-Blue, inspired by example */
    --secondary-color: #0077A3; /* Darker shade of primary */
    --text-color: #ffffff; /* White for main text */
    --light-text: #B0B0B0; /* Slightly brighter light gray for secondary text */
    --background: #0A1626; /* Very dark, almost black-blue */
    --section-bg: #0D1A2F; /* Dark blue for alternating sections */
    --card-bg: #1A273B; /* Slightly lighter dark blue for cards */
    --transition: all 0.4s ease;
    --shadow-color: rgba(0, 0, 0, 0.6); /* More pronounced shadow */
}

html, body {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for better scaling */
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2vw;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 22, 38, 0.95); /* Semi-transparent very dark blue */
    backdrop-filter: blur(8px); /* Stronger blur */
    box-shadow: 0 4px 20px var(--shadow-color); /* More pronounced shadow */
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.8rem; /* Slightly larger text logo */
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.logo-img {
    width: 40px;
    height: 40px;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: brightness(1.2);
    border-radius: 50%;
    display: block;
    max-width: 100%;
    height: auto;
}

.logo-text {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Desktop default: always show nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px; /* Space for underline effect */
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    font-size: 1.8rem; /* Larger menu icon */
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 0.5rem;
    transition: var(--transition);
    transform: scale(1.1);
}

.menu-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0 6rem; /* More prominent padding */
    background: var(--background);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 120%;
    background: rgba(0, 140, 186, 0.1); /* Subtle background accent using primary color */
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.hero-content {
    max-width: 700px; /* Slightly wider text content */
    z-index: 1;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem); /* Responsive font size */
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem); /* Responsive font size */
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-content p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--light-text);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem); /* Responsive padding */
    border-radius: 8px; /* More rounded corners */
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin: 0.5rem;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    border: none;
    text-align: center;
    min-width: 120px;
    white-space: nowrap;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 140, 186, 0.3);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 140, 186, 0.4);
}

.btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Section Styles */
section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    width: 100%;
}

section:nth-of-type(even) {
    background: var(--section-bg);
}

section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    color: var(--text-color);
    position: relative;
    font-weight: 600;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* About Section */
.about {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    flex-wrap: wrap;
    justify-content: center;
}

.about-image {
    flex-shrink: 0;
    max-width: 300px;
    width: 100%;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
    max-width: 300px;
    aspect-ratio: 1/1;
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

.about-image:hover {
    transform: scale(1.05);
}

.about-image:hover .profile-image {
    box-shadow: 0 15px 40px rgba(0, 140, 186, 0.3);
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-text p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 140, 186, 0.2);
}

.label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.value {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Skills Section */
.skills {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 140, 186, 0.1), transparent);
    transition: left 0.6s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 140, 186, 0.3);
}

.skill-card i {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.skill-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.skill-card p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--light-text);
}

/* Projects Section */
.projects {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 140, 186, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    max-width: 100%;
    height: auto;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-content {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.project-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-content p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--light-text);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 140, 186, 0.2);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    background: var(--card-bg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--background);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 140, 186, 0.1);
}

/* Footer */
.footer {
    background: var(--section-bg);
    padding: clamp(2rem, 5vw, 3rem) 0;
    text-align: center;
    border-top: 1px solid rgba(0, 140, 186, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 140, 186, 0.4);
}

/* Highlight Text */
.highlight {
    color: var(--primary-color);
}

/* Enhanced Responsive Design */
/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .subtitle {
        font-size: 2.2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
    .about-content {
        flex-direction: row;
        text-align: left;
        justify-content: center;
    }

    .about-image {
        margin: 0;
    }

    .about-text {
        text-align: left;
    }

    .personal-info {
        grid-template-columns: 1fr 1fr;
        justify-content: flex-start;
        text-align: left;
    }

    .info-item {
        align-items: flex-start;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        padding: 0 3rem;
        height: 90vh;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-content {
        padding: 1rem 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .hero {
        justify-content: center;
        text-align: center;
        padding: 0 2rem;
        height: 80vh;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 80%;
        max-width: 300px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Position below navbar */
        left: 0;
        width: 100%;
        background: rgba(10, 22, 38, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        box-shadow: 0 4px 20px var(--shadow-color);
        border-top: 1px solid var(--primary-color);
        z-index: 2000;
    }

    nav .nav-links.active, .navbar .nav-links.active {
        display: flex !important; /* Show links when active, override all */
    }

    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .menu-btn {
        display: block;
    }

    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .about-content,
    .personal-info {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 250px;
        margin-bottom: 2rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-card,
    .project-card {
        padding: 2rem;
    }

    .project-image {
        height: 180px;
    }

    .social-links {
        margin-top: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Mobile Large (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {
    .container {
        padding: 0 1vw;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-content {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        background: var(--card-bg);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100vw;
        display: none;
        z-index: 1001;
        padding: 1rem 0;
        box-shadow: 0 5px 15px var(--shadow-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-btn {
        display: block;
        margin-left: auto;
    }
    
    .hero {
        padding: 0 1rem;
        height: auto;
        min-height: 70vh;
        text-align: center;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 200px;
    }
    
    .about-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .social-links {
        gap: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links a {
        font-size: 1.3rem;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Medium (320px - 374px) */
@media (min-width: 320px) and (max-width: 374px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .nav-content {
        padding: 0.5rem 0.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .hero {
        padding: 0 0.8rem;
        min-height: 65vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .about-image {
        max-width: 150px;
    }
    
    .about-text {
        font-size: 0.9rem;
        padding: 0 0.3rem;
    }
    
    .skill-card, .project-card {
        padding: 1.2rem;
    }
    
    .project-image {
        height: 140px;
    }
    
    .contact-info, .contact-form {
        padding: 1.2rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Mobile Small (up to 319px) */
@media (max-width: 319px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .nav-content {
        padding: 0.5rem 0.5rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 25px;
        height: 25px;
    }
    
    .hero {
        padding: 0 0.5rem;
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        max-width: 200px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .about-image {
        max-width: 120px;
    }
    
    .about-text {
        font-size: 0.8rem;
        padding: 0 0.2rem;
    }
    
    .skill-card, .project-card {
        padding: 1rem;
    }
    
    .project-image {
        height: 120px;
    }
    
    .contact-info, .contact-form {
        padding: 1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .footer {
        font-size: 0.8rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .btn {
        width: auto;
        max-width: none;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .about-content {
        flex-direction: row;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 120px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img, .profile-image, .project-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating, .pulse, .glow, .bounce, .rotate, .shake {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0A1626;
        --section-bg: #0D1A2F;
        --card-bg: #1A273B;
    }
}

/* Print Styles */
@media print {
    .navbar, .menu-btn, .cta-buttons, .social-links {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .about-content, .skill-card, .project-card, .contact-info, .contact-form {
    animation: fadeIn 1s ease-out;
}

/* Responsive Styles for Mobile and Tablet */
@media (max-width: 1023px) {
    .nav-content {
        padding: 0.5rem 1rem;
        position: relative;
    }
    .logo {
        font-size: 1.2rem;
    }
    .logo-img {
        width: 32px;
        height: 32px;
    }
    .menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 2rem;
        cursor: pointer;
        margin-left: auto;
        z-index: 3001;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 40vh;
        background: rgba(10,22,38,0.98);
        box-shadow: 0 4px 20px var(--shadow-color);
        z-index: 3000;
        transition: all 0.3s cubic-bezier(.4,2,.6,1);
        padding-top: 2.5rem;
    }
    .nav-links.active {
        display: flex !important;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
    .nav-links a {
        padding: 1rem 0;
        font-size: 1.1rem;
        color: #fff;
        width: 100%;
        display: block;
        transition: background 0.2s;
    }
    .nav-links a:hover {
        background: rgba(0,140,186,0.08);
        color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1vw;
    }
    section, .blog-header, .blog-list-section, .about-content, .projects-grid, .skills-grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100vw !important;
        box-sizing: border-box;
    }
    body, html {
        width: 100vw !important;
        overflow-x: hidden !important;
    }
} 