/* ==========================================================================
   RESET & SYSTEM BASE
   ========================================================================== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* Extra safety: prevent accidental layout overflow from positioned/flex/transform content */
html, body{
    max-width: 100%;
}

*{
    max-width: 100%;
}

/* Prevent fixed background/header from creating scroll overflow on some browsers */
html{
    overflow-x: hidden;
}



body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.62);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* ==========================================================================
   INTEGRATED DYNAMIC BACKGROUND (DARK MOOD BUBBLES & ANIMATIONS)
   ========================================================================== */
/* ==========================================================================
   INTEGRATED DYNAMIC BACKGROUND (HIGH-VISIBILITY DARK MOOD ANIMATIONS)
   ========================================================================== */
.bubbles-bg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1; /* Sits cleanly behind text/cards but above background colors */
    overflow: hidden;
    background: #0a0a0a; /* Dark baseline matching image_a78fa0.jpg */
}

.bubbles-bg span{
    /* Prevent bubbles from ever influencing layout size */
    display: block;
    max-width: none;
    max-height: none;
}


/* Enhanced High-Visibility Glass Bubbles */
.bubbles-bg span {
    position: absolute;
    border-radius: 50%;
    left: auto;
    right: auto;

    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 70%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset -2px -2px 6px rgba(255, 255, 255, 0.03),
                0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.bubbles-bg span:nth-child(1)  { width: 80px;  height: 80px;  top: 5%;   left: 5%;   opacity: 0.35; }
.bubbles-bg span:nth-child(2)  { width: 50px;  height: 50px;  top: 12%;  left: 18%;  opacity: 0.3; }
.bubbles-bg span:nth-child(3)  { width: 120px; height: 120px; top: 3%;   left: 35%;  opacity: 0.35; animation: floatBubble 8s ease-in-out infinite; }
.bubbles-bg span:nth-child(4)  { width: 30px;  height: 30px;  top: 20%;  left: 50%;  opacity: 0.4; }
.bubbles-bg span:nth-child(5)  { width: 70px;  height: 70px;  top: 8%;   left: 65%;  opacity: 0.35; }
.bubbles-bg span:nth-child(6)  { width: 40px;  height: 40px;  top: 18%;  left: 78%;  opacity: 0.38; }
.bubbles-bg span:nth-child(7)  { width: 90px;  height: 90px;  top: 2%;   left: 88%;  opacity: 0.3; }
.bubbles-bg span:nth-child(8)  { width: 55px;  height: 55px;  top: 30%;  left: 3%;   opacity: 0.35; }
.bubbles-bg span:nth-child(9)  { width: 25px;  height: 25px;  top: 38%;  left: 22%;  opacity: 0.45; }
.bubbles-bg span:nth-child(10) { width: 100px; height: 100px; top: 28%;  left: 42%;  opacity: 0.32;  animation: floatBubble 10s ease-in-out infinite reverse; }
.bubbles-bg span:nth-child(11) { width: 45px;  height: 45px;  top: 35%;  left: 60%;  opacity: 0.38; }
.bubbles-bg span:nth-child(12) { width: 65px;  height: 65px;  top: 32%;  left: 80%;  opacity: 0.32; }
.bubbles-bg span:nth-child(13) { width: 35px;  height: 35px;  top: 50%;  left: 10%;  opacity: 0.4; }
.bubbles-bg span:nth-child(14) { width: 85px;  height: 85px;  top: 48%;  left: 30%;  opacity: 0.34; }
.bubbles-bg span:nth-child(15) { width: 20px;  height: 20px;  top: 55%;  left: 48%;  opacity: 0.5; }
.bubbles-bg span:nth-child(16) { width: 110px; height: 110px; top: 52%;  left: 68%;  opacity: 0.32;  animation: floatBubble 7s ease-in-out infinite; }
.bubbles-bg span:nth-child(17) { width: 50px;  height: 50px;  top: 60%;  left: 88%;  opacity: 0.36; }
.bubbles-bg span:nth-child(18) { width: 75px;  height: 75px;  top: 68%;  left: 5%;   opacity: 0.34; }
.bubbles-bg span:nth-child(19) { width: 30px;  height: 30px;  top: 72%;  left: 25%;  opacity: 0.42; }
.bubbles-bg span:nth-child(20) { width: 95px;  height: 95px;  top: 70%;  left: 45%;  opacity: 0.3;  animation: floatBubble 9s ease-in-out infinite reverse; }
.bubbles-bg span:nth-child(21) { width: 40px;  height: 40px;  top: 78%;  left: 62%;  opacity: 0.38; }
.bubbles-bg span:nth-child(22) { width: 60px;  height: 60px;  top: 75%;  left: 80%;  opacity: 0.32; }
.bubbles-bg span:nth-child(23) { width: 55px;  height: 55px;  top: 88%;  left: 15%;  opacity: 0.36; }
.bubbles-bg span:nth-child(24) { width: 35px;  height: 35px;  top: 92%;  left: 35%;  opacity: 0.42; }
.bubbles-bg span:nth-child(25) { width: 80px;  height: 80px;  top: 85%;  left: 55%;  opacity: 0.34; }
.bubbles-bg span:nth-child(26) { width: 45px;  height: 45px;  top: 90%;  left: 75%;  opacity: 0.36; }
.bubbles-bg span:nth-child(27) { width: 130px; height: 130px; top: 42%;  left: -4%;  opacity: 0.28; animation: floatBubble 12s ease-in-out infinite; }
.bubbles-bg span:nth-child(28) { width: 25px;  height: 25px;  top: 15%;  left: 95%;  opacity: 0.4; }

@keyframes floatBubble {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-20px); }
}

header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 90px;
    
    /* Perfect translucent white tint */
    background: rgba(25, 25, 25, 0.45); 
    
    /* Hardware-accelerated frosted glass blur effects */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Fine-line glass edge border to separate from background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    
    /* Subtle outer depth reflection shadow */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Optional smooth dynamic scroll state */
header.sticky {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.15); /* Soft emerald tinted border glow on scroll */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 12px 8%;
    height: 100%;
    transition: padding 0.3s ease;
}

/* Adjust header padding slightly when scrolled for a dynamic feel */
header.sticky .navbar {
    padding: 8px 8%;
}

.logo a{
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.logo span{
    color: #059669;
}



.nav-links{
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a{
    text-decoration: none;
    color: #94a3b8;
    transition: 0.3s ease;
    font-size: 14px;
    font-weight: 400;
}

.nav-links a:hover,
.nav-links li.active a{
    color: #ffffff;
}

.menu-btn{
    display: none;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.menu-btn:hover,
.menu-btn.active{
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

/* ==========================================================================
   GLOBAL LAYOUT SECTION STYLES
   ========================================================================== */
section{
    position: relative;
    background: transparent; /* Allows back elements to move freely through layout blocks */
    z-index: 2;
    padding: 120px 8%;
}

.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero{
    height: 100vh;
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 20px 90px;
    position: relative;
    z-index: 2;
}

.hero-content{
    color: #1a2a4a;
    max-width: 850px;
    animation: fadeUp 1.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(45, 45, 45, 0.82), rgba(7, 7, 7, 0.85), rgba(0, 0, 0, 0.95));
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
    z-index: 3;
    pointer-events: none;
}

.hero-content{
    color: #1a2a4a;
    max-width: 850px;
    animation: fadeUp 1.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy{
    max-width: 720px;
    margin-top: 10px;
}

.hero-kicker{
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #dfe7f3;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-summary{
    margin: 0 auto 18px;
    font-size: 1rem;
    line-height: 1.8;
    color: #d7e2ee;
    max-width: 640px;
}

@keyframes fadeUp{
    from{ opacity: 0; transform: translateY(40px); }
    to{   opacity: 1; transform: translateY(0); }
}

.profile-img{
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    margin: 50px 0 20px 0;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 30px rgba(0,153,221,0.4), 0 0 0 8px rgba(255,255,255,0.3);
    animation: profileFloat 4s ease-in-out infinite;
}

@keyframes profileFloat{
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Nudge the profile photo down a bit on larger screens, where it was
   sitting a little high/close to the header. Mobile breakpoints below
   already set their own margin, so this only affects desktop-size views. */
@media(min-width: 901px){
    .profile-img{ margin-top: 90px; }
}

.hero h1{
    font-size: 45px;
    line-height: 1.1;
    margin-bottom: 18px;
    color: white;
}

.hero span{
    color: #059669;
}

.hero h3{
    font-size: 15px;
    margin-bottom: 15px;
    color: #999d9c;
}

.hero-buttons{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn{
    padding: 15px 34px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.4s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn:hover{
    transform: translateY(-4px);
}

.primary-btn{
    background: #059669;
    color: white;
}

.primary-btn:hover{
    background:white;
    color:#023c2a
}

.secondary-btn{
    border: 2px solid #1a2a4a;
    color: #059669;
    background: rgba(255, 255, 255, 0.89);
}

.secondary-btn:hover{
    background: #044f37;
    color: white;
}

.social-icons{
    margin-top: 30px;
}

.social-icons a{
    color: #1a2a4a;
    margin: 0 10px;
    font-size: 22px;
    transition: 0.3s;
}

.social-icons a:hover{
    color: #059669;
}


.about{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 120px 8%;
    flex-wrap: nowrap;
    background: linear-gradient(135deg, rgba(20, 25, 20, 0.96), rgba(15, 20, 25, 0.94));
    position: relative;
    border-top: 1px solid rgba(5, 150, 105, 0.15);
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(5, 150, 105, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.about-image{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.about-image img{
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    animation: floatImage 2s ease-in-out infinite;
    transition: 0.5s ease;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.12));
}

@keyframes floatImage{
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.about-image img:hover{ transform: scale(1.03); }

.about-text{ flex: 1; min-width: 300px; align-self: center; position: relative; z-index: 2; }

.about-text h2{
    font-size: 48px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #f8f6f6;
}

.about-text p{
    margin-bottom: 20px;
    line-height: 1.9;
    color: #969595;
    font-size: 17px;
}

@media(max-width: 992px){
    .about{ gap: 40px; text-align: center; align-items: center; flex-wrap: wrap; }
    .about-image{ align-items: center; margin-top: 0; }
    .about-text{ align-self: center; }
    .about-image img{ max-width: 500px; }
}

@media(max-width: 768px){
    .about{ flex-direction: column; padding: 80px 6%; align-items: center; }
    .about-image img{ max-width: 100%; }
    .about-text h2{ font-size: 36px; }
}


/* SERVICES — light gradient */
.services{
    padding: 120px 8%;
    background: linear-gradient(135deg, #232324c5, #252627a5);
    text-align: center;
}

.services .section-title{ color: #f4f4f4; }
.services .section-subtitle{ color: #919090; }

.section-title{
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ecebeb;
}

.section-subtitle{
    font-size: 16px;
    color: #666;
    margin-bottom: 60px;
}

.service-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card{
    background: linear-gradient(145deg, rgba(34, 34, 34, 0.98), rgba(20, 20, 20, 0.96));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.12), transparent 45%, rgba(255,255,255,0.03));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.service-card:hover{
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
}

.service-card:hover::after {
    opacity: 1;
}

.service-image{ width: 100%; height: 220px; overflow: hidden; }
.service-image img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.service-card:hover .service-image img{ transform: scale(1.06); }

.service-content{ padding: 24px 24px 28px; text-align: left; }
.service-content h3{ font-size: 20px; margin-bottom: 10px; color: #f8fafc; }
.service-content p{ font-size: 14px; color: #cbd5e1; line-height: 1.6; }

@media(max-width: 768px){
    .section-title{ font-size: 32px; }
    .section-subtitle{ font-size: 14px; }
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills {
    max-width: 800px;
    margin: 0 auto;
}

.skills .section-title {
    text-align: left;
    font-size: 32px;
    margin-bottom: 40px;
}

.skill {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ffffff;
}

.progress-bar{
    background: #1e293b;
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
}

.progress{
    height: 100%;
    border-radius: 4px;
    background: #059669; /* Continuous Emerald color accent layout */
}

/* Progress assignments */
.html { width: 95%; }
.css { width: 90%; }
.js { width: 80%; }
.ui { width: 85%; }
.react { width: 35%; }

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects .section-title {
    text-align: left;
    font-size: 32px;
    margin-bottom: 50px;
}

.projects{
    background: linear-gradient(135deg, rgba(24, 24, 24, 0.98), rgba(36, 36, 36, 0.95));
    position: relative;
}

.projects::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent 38%);
    pointer-events: none;
}

.project-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.project-card{
    background: linear-gradient(145deg, rgba(34, 34, 34, 0.98), rgba(20, 20, 20, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.12), transparent 45%, rgba(255, 255, 255, 0.03));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-content{ 
    padding: 24px 24px 28px; 
    position: relative;
    z-index: 1;
}

.project-content h3{ 
    font-size: 20px; 
    margin-bottom: 10px; 
    color: #ffffff; 
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-content h3::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    flex-shrink: 0;
}

.project-content p{ 
    color: #cbd5e1; 
    line-height: 1.7; 
    font-size: 14px; 
}

.in-dev-badge{
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-header {
    text-align: left;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 32px;
    color: #ffffff;
}

.contact-container{
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
}

.contact-info{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card{
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(25, 35, 25, 0.96), rgba(20, 30, 20, 0.94));
    border-radius: 12px;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.contact {
    background: linear-gradient(135deg, rgba(20, 25, 25, 0.97), rgba(15, 20, 20, 0.95));
    position: relative;
}

.contact-card i{
    font-size: 24px;
    color: #059669;
}

.contact-card h3{
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-card p{
    color: #64748b;
    font-size: 14px;
}

/* Modern Dark Form Inputs */
.contact-form input,
.contact-form textarea{
    width: 100%;
    padding: 16px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(5, 150, 105, 0.25);
    background: rgba(15, 20, 20, 0.95);
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-form textarea{
    resize: none;
    height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
    background: rgba(18, 28, 22, 0.98);
}

.contact-form button{
    width: 100%;
    border: none;
    padding: 15px;
    font-size: 15px;
    display: block;
    min-width: 0;
}


/* Status message shown after form submission */
.form-status{
    margin: 12px 0 18px 0;
    color: #d1fae5; /* light green */
    background: rgba(5,150,105,0.06);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer{
    background: #f5f4f4;
    color: #64748b;
    padding: 80px 8% 30px 8%;
    border-top: 1px solid #111111;
}

.footer-container{
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo h2{
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-logo span{ color: #059669; }

.footer-links h3, 
.footer-socials h3{
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.footer-links{ display: flex; flex-direction: column; gap: 12px; }
.footer-links a{ color: #64748b; text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover{ color: #059669; }

.footer-icons{ display: flex; gap: 15px; }
.footer-icons a{
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 4px; background: #111111; color: #ffffff; transition: all 0.3s;
}
.footer-icons a:hover{ background: #059669; transform: translateY(-3px); }

.footer-bottom{ text-align: center; padding-top: 30px; border-top: 2px solid #f8f6f6; font-size: 13px; }

/* ==========================================================================
    LARGE SCREEN HERO TEXT SIZING
    ========================================================================== */
@media(min-width: 1400px){
    .hero h1{ font-size: 52px; }
    .hero h3{ font-size: 18px; }
    .profile-img{ width: 210px; height: 210px; margin-top: 100px; }
}

@media(min-width: 1800px){
    .hero h1{ font-size: 58px; }
    .hero h3{ font-size: 20px; }
    .profile-img{ width: 240px; height: 240px; margin-top: 110px; }
}

@media(min-width: 2200px){
    .hero h1{ font-size: 64px; }
    .hero h3{ font-size: 22px; }
    .profile-img{ width: 270px; height: 270px; margin-top: 120px; }
}

/* ==========================================================================
    RESPONSIVE LAYOUT ADJUSTMENTS
    ========================================================================== */
@media(max-width: 1024px){
    .contact-container { grid-template-columns: 1fr; }
    .contact-info { order: 1; }
    .contact-form { order: 2; }
}

@media(max-width: 900px){
    .hero h1 { font-size: 38px; }
    .hero h3 { font-size: 14px; }
    .hero-buttons { gap: 14px; }
    .btn { padding: 14px 28px; font-size: 14px; }
    .profile-img { width: 160px; height: 160px; }
}

@media(max-width: 768px){
    /* Ensure contact section expands normally on smaller screens (no clipped content) */
    .contact{ overflow: visible; }
    .contact-container{ min-width: 0; }
    .contact-info{ min-width: 0; }
    section { padding: 80px 6%; }

    /* Professional layout: contact info first, form below */
        .contact-container{display: block; }
        .contact-info{ order: 1; }
        .contact-form{ order: 2; }

        .contact-header h2 { font-size: 26px; }
        .contact-header p { font-size: 14px; color: #b0b0b0; margin-top: 8px; }
        .contact-card { padding: 18px; gap: 14px; }
        .contact-card i { font-size: 20px; }
        .contact-card h3 { font-size: 14px; }
        .contact-card p { font-size: 13px; }
        .contact-form input, .contact-form textarea { padding: 14px; font-size: 14px; margin-bottom: 12px; }
        .contact-form textarea { height: 120px; }
        .contact-form button { padding: 14px; font-size: 14px; }
        .form-status { font-size: 13px; padding: 8px 10px; }
        .section-title { font-size: 28px; }



        .menu-btn { display: inline-flex; align-items: center; justify-content: center; }

    header {
        height: 66px;
    }

    .navbar {
        padding: 0 6%;
    }

    .logo a { font-size: 19px; }

    .nav-links {
        position: fixed;
        top: 66px;
        right: -100%;
        width: min(280px, 90vw);
        flex-direction: column;
        padding: 24px 20px;
        gap: 14px;
        transition: all 0.35s ease;
        border: 1px solid rgba(5, 150, 105, 0.2);
        border-radius: 18px;
        background: rgba(10, 30, 20, 0.96);
        box-shadow: 0 16px 40px rgba(5, 150, 105, 0.25);
        backdrop-filter: blur(16px);
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        right: 20px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: #e2e8f0;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        background: rgba(5, 150, 105, 0.18);
        color: #ffffff;
    }

    .hero {
        justify-content: center;
        text-align: center;
        /* Was a fixed 100vh at every screen size, which left a huge
           empty scroll block above the fold on phones. Let the section
           size itself to its content instead, with sensible top/bottom
           breathing room. */
        height: auto;
        min-height: 0;
        padding: 90px 24px 70px;
    }
.hero-content { text-align: center; }
    .hero-copy { margin-top: 0; }
    .hero h1 { font-size: 32px; }
    .hero h3 { font-size: 14px; }
    .hero-summary { font-size: 0.95rem; }
    .profile-img { width: 140px; height: 140px; margin: 38px 0 16px 0; }

    .about { flex-direction: column; gap: 40px; text-align: center; }
    .about-meta-grid { grid-template-columns: 1fr; text-align: left; }
    .services-header .watermark { font-size: 52px; }
}

/* ==========================================================================
    CONTACT SECTION
    ========================================================================== */
.contact-header {
    text-align: left;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 32px;
    color: #ffffff;
}

.contact-container{
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
}

.contact-info{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card{
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(25, 35, 25, 0.96), rgba(20, 30, 20, 0.94));
    border-radius: 12px;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.contact {
    background: linear-gradient(135deg, rgba(20, 25, 25, 0.97), rgba(15, 20, 20, 0.95));
    position: relative;
}

.contact-card i{
    font-size: 24px;
    color: #059669;
}

.contact-card h3{
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-card p{
    color: #64748b;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea{
    width: 100%;
    padding: 16px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(5, 150, 105, 0.25);
    background: rgba(15, 20, 20, 0.95);
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-form textarea{
    resize: none;
    height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
    background: rgba(18, 28, 22, 0.98);
}

.contact-form button{
    width: 100%;
    border: none;
    padding: 15px;
    font-size: 15px;
}

.form-status{
    margin: 12px 0 18px 0;
    color: #d1fae5;
    background: rgba(5,150,105,0.06);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}



/* ==========================================================================
    FOOTER SECTION
    ========================================================================== */
.footer{
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
    color: #64748b;
    padding: 80px 8% 30px 8%;
    border-top: 1px solid #111111;
}

.footer::before{
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: #0596686e;
    border-radius: 50%;
    top: -120px;
    right: -120px;
    filter: blur(100px);
}

.footer-container{
    position: relative;
    z-index: 2;
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo h2{
    font-size: 32px;
    margin-bottom: 15px;
}

.footer-logo span{
    color: #0596686e;
}

.footer-logo p{
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.footer-links h3,
.footer-socials h3{
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links{
    display: flex;
    flex-direction: column;
}

.footer-links a{
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.3s ease;
}

.footer-links a:hover{
    color: #0596686e;
    transform: translateX(5px);
}

.footer-icons{
    display: flex;
    gap: 15px;
}

.footer-icons a{
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    transition: 0.4s ease;
}

.footer-icons a:hover{
    background: linear-gradient(135deg, #0596686e, #0596686e);
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 12px 25px #0596686e;
}

.footer-bottom{
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 25px 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
}

@media(max-width: 480px){
    .project-container{
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-card{
        min-width: 0;
    }
    .project-card img{
        height: 180px;
    }
    .contact-container{
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-header h2 { font-size: 22px; margin-bottom: 20px; }
    .contact-header p { font-size: 13px; margin-top: 6px; color: #999; }
    .contact-card { padding: 14px; gap: 10px; border-radius: 10px; }
    .contact-card i { font-size: 18px; }
    .contact-card h3 { font-size: 13px; margin-bottom: 2px; }
    .contact-card p { font-size: 12px; }
    .contact-form input, .contact-form textarea { padding: 12px; font-size: 13px; margin-bottom: 10px; border-radius: 6px; }
    .contact-form textarea { height: 100px; }
    .contact-form button { padding: 12px; font-size: 13px; }
    .form-status { font-size: 12px; padding: 8px 10px; }
    .section-title { font-size: 24px; }
    .hero { padding: 90px 20px 50px; }
    .hero h1 { font-size: 26px; }
    .hero h3 { font-size: 13px; }
    .profile-img { width: 120px; height: 120px; margin: 28px 0 12px 0; }
    .btn { padding: 12px 24px; font-size: 13px; }
    .about-text h2 { font-size: 28px; }
    .about-text p { font-size: 15px; }
    section { padding: 60px 5%; }
    .nav-links { width: 85vw; }
    .nav-links.active { right: 10px; }
}
