/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
    --main-color: #00aaff;
    --secondary-color: #00ffcc;
    --accent-color: #9d4edd;
    --bg-color: #0a0f1e;
    --card-bg: #111827;
    --text-color: #e5e7eb;
    --text-light: #9ca3af;
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

section {
    padding: 8rem 5% 5rem;
}

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

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.section-title span {
    color: var(--main-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    color: white;
    border: none;
    margin: 1rem 0.5rem;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--main-color);
    color: white;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    background-color: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 170, 255, 0.1);
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
}

.logo span {
    color: var(--main-color);
    animation: colorChange 4s infinite;
}

@keyframes colorChange {

    0%,
    100% {
        color: var(--main-color);
    }

    50% {
        color: var(--secondary-color);
    }
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--main-color);
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    background: rgba(0, 170, 255, 0.1);
    color: var(--main-color);
}

.hamburger {
    display: none;
    font-size: 2.5rem;
    color: var(--main-color);
    cursor: pointer;
    z-index: 1001;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.modal-content {
    background: var(--card-bg);
    max-width: 900px;
    margin: 5rem auto;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    border: 1px solid rgba(0, 170, 255, 0.2);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

.modal-header {
    padding: 2rem 3rem;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    color: white;
    position: relative;
}

.modal-header h2 {
    font-size: 2.8rem;
    font-family: 'Montserrat', sans-serif;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.modal-body h3 {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

.modal-body p {
    font-size: 1.7rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.modal-body ul {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.modal-body li {
    margin-bottom: 0.8rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.tech-tag {
    background: rgba(0, 170, 255, 0.1);
    color: var(--main-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.4rem;
    border: 1px solid rgba(0, 170, 255, 0.3);
}

.modal-links {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* ===== HOME SECTION WITH BACKGROUND ===== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(10, 15, 30, 0.85), rgba(26, 35, 58, 0.9)),
        url('abbey.jpg') center/cover no-repeat fixed;
    padding-top: 10rem;
    position: relative;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('abbey.jpg') center/cover no-repeat fixed;
    filter: blur(5px) brightness(0.7);
    z-index: -1;
}

.home-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.home-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--main-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.home-content h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.typing-text {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.home-content p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 170, 255, 0.3);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.social-icons a:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

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

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(to bottom, #1a233a, #0a0f1e);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.about-img:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.about-text p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.skills {
    margin-top: 3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(0, 170, 255, 0.1);
    color: var(--main-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1.4rem;
    border: 1px solid rgba(0, 170, 255, 0.3);
    white-space: nowrap;
}

/* ===== EDUCATION SECTION ===== */
.education {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.education-card {
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid rgba(0, 170, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.education-card h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.education-card p {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background: linear-gradient(to bottom, #0a0f1e, #1a233a);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 2rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 170, 255, 0.1);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 170, 255, 0.2);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

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

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

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.portfolio-content p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}

.portfolio-tech span {
    background: rgba(0, 170, 255, 0.1);
    color: var(--secondary-color);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 1.2rem;
    white-space: nowrap;
}

/* ===== BLOG SECTION ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 2rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 170, 255, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 170, 255, 0.2);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

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

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

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

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    flex-wrap: wrap;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 170, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--main-color);
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 170, 255, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: var(--text-color);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--main-color);
    outline: none;
}

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

/* ===== FOOTER ===== */
footer {
    background: #111827;
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 170, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.footer-col p,
.footer-col li {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--main-color);
}

.copyright {
    font-size: 1.4rem;
    color: var(--text-light);
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

/* ===== ONLINE DOT ===== */
.online-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #00ff00;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
    vertical-align: middle;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

/* ===== THEME SWITCHER ===== */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--main-color);
    color: var(--main-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.2);
}

.theme-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.3);
}

.theme-toggle .fa-sun {
    display: none;
}

/* Light Mode Styles */
body.light-mode {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --main-color: #007bff;
    --secondary-color: #00b894;
    --accent-color: #9d4edd;
}

body.light-mode .theme-toggle {
    background: var(--card-bg);
    border-color: var(--main-color);
    color: var(--main-color);
}

body.light-mode .theme-toggle .fa-moon {
    display: none;
}

body.light-mode .theme-toggle .fa-sun {
    display: block;
}

body.light-mode header {
    background-color: rgba(248, 249, 250, 0.95);
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
}

body.light-mode nav a {
    color: var(--text-color);
}

body.light-mode nav a:hover,
body.light-mode nav a.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--main-color);
}

body.light-mode .modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

body.light-mode .home {
    background: linear-gradient(rgba(248, 249, 250, 0.85), rgba(230, 235, 240, 0.9)),
        url('abbey.jpg') center/cover no-repeat fixed;
}

body.light-mode .about {
    background: linear-gradient(to bottom, #e9ecef, #f8f9fa);
}

body.light-mode .education {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb, #90caf9);
}

body.light-mode .portfolio {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

body.light-mode .blog {
    background: linear-gradient(to bottom, #e9ecef, #f8f9fa);
}

body.light-mode .contact {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb, #90caf9);
}

body.light-mode footer {
    background: #e9ecef;
    border-top: 1px solid rgba(0, 123, 255, 0.1);
}

body.light-mode .skill-tag,
body.light-mode .tech-tag,
body.light-mode .portfolio-tech span {
    background: rgba(0, 123, 255, 0.1);
    color: var(--main-color);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

body.light-mode .education-card,
body.light-mode .portfolio-card,
body.light-mode .blog-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

body.light-mode .contact-form {
    background: var(--card-bg);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

body.light-mode .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

body.light-mode .social-icons a {
    background: rgba(0, 123, 255, 0.1);
    color: var(--main-color);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

body.light-mode .whatsapp-float {
    background-color: #25d366;
}

/* Online dot color for light mode */
body.light-mode .online-dot {
    background-color: #28a745;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large devices (desktops, 992px and up) */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    section {
        padding: 6rem 5% 4rem;
    }

    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 80px);
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        transition: 0.5s;
        border-left: 1px solid rgba(0, 170, 255, 0.1);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    .modal-content {
        margin: 2rem auto;
        width: 95%;
    }

    .home {
        background-attachment: scroll;
        min-height: auto;
        padding: 12rem 0 6rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
    .home-content h1 {
        font-size: 3.5rem;
    }

    .home-content h2 {
        font-size: 2.5rem;
    }

    .home-content h3 {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 2rem;
    }

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

    .about-img {
        order: -1;
    }

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

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

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

    .modal-body {
        padding: 2rem;
    }

    .modal-header {
        padding: 1.5rem 2rem;
    }

    .modal-links {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-links .btn {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .theme-toggle {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* Small devices (phones, 576px and up) */
@media (max-width: 576px) {
    html {
        font-size: 50%;
    }

    section {
        padding: 5rem 3% 3rem;
    }

    .container {
        padding: 0 1rem;
    }

    .home-content h1 {
        font-size: 3rem;
    }

    .home-content h2 {
        font-size: 2.2rem;
    }

    .home-content h3 {
        font-size: 1.8rem;
    }

    .typing-text {
        font-size: 1.8rem;
    }

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

    .btn {
        padding: 1rem 2rem;
        font-size: 1.4rem;
        width: 100%;
        margin: 0.5rem 0;
    }

    .home-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .portfolio-img,
    .blog-img {
        height: 180px;
    }

    .education-card,
    .contact-form {
        padding: 2rem;
    }

    .modal-content {
        margin: 1rem auto;
        border-radius: 1rem;
    }

    .modal-image {
        height: 200px;
    }

    .modal-body h3 {
        font-size: 2rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }

    .theme-toggle {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .logo {
        font-size: 2rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }
}

/* Extra small devices (phones, less than 400px) */
@media (max-width: 400px) {
    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-content h2 {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1.6rem;
    }

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

    .portfolio-tech,
    .skill-tags {
        justify-content: center;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-control {
        padding: 1rem;
    }

    textarea.form-control {
        min-height: 120px;
    }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .home {
        min-height: auto;
        padding: 10rem 0 4rem;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-content h2 {
        font-size: 2rem;
    }

    .home-content p {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    nav {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* Print styles */
@media print {

    .whatsapp-float,
    .theme-toggle,
    .hamburger,
    nav,
    .modal,
    .social-icons {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .container {
        max-width: 100%;
    }

    section {
        padding: 2rem 0 !important;
        page-break-inside: avoid;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }
}