@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #0f295a;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
    --accent-color: #75FBFD;
    --gradient-1: linear-gradient(135deg, #0f295a, #1a3a7c);
    --gradient-2: linear-gradient(135deg, #0ef, #75FBFD);
    --shadow-light: 0 0 20px rgba(0, 238, 255, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 238, 255, 0.2);
    --shadow-heavy: 0 20px 50px rgba(0, 238, 255, 0.3);
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    color-scheme: dark;
    font-size: 16px; /* Base font size increased */
}

/* Responsive font sizes */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14.5px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13.5px;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 13px;
    }
}

body {
    background: var(--bg-color);
    background: linear-gradient(135deg, #0a1d3f 0%, #0f295a 50%, #1a3a7c 100%);
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* ========== HEADER SECTION ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 3rem;
    background: rgba(15, 41, 90, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid rgba(0, 238, 255, 0.1);
}

.header.sticky {
    padding: 0.8rem 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logoo {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(0, 238, 255, 0.2);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.logoo:hover {
    transform: scale(1.05);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.navbar a {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.3s ease;
}

.navbar a:hover::before,
.navbar a.active::before {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-color);
    transform: translateY(-2px);
}

#menu-icon {
    font-size: 2.5rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

#menu-icon:hover {
    color: var(--accent-color);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .header {
        padding: 1rem 2rem;
    }
    
    #menu-icon {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        transition: right 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar a {
        font-size: 1.3rem;
        padding: 0;
        width: 80%;
        text-align: center;
        border-radius: 0;
        transition: all 0.3s ease;
        margin: -.3rem 0;
}
    
    .navbar a:hover {
        background: rgba(0, 238, 255, 0.1);
        transform: translateX(-10px);
    }
    
    .navbar a::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0.8rem 1.5rem;
    }
    
    .logoo {
        font-size: 1.8rem;
    }
    
    .navbar {
        width: 100%;
    }
}

/* ========== HOME SECTION ========== */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 3rem 4rem;
    min-height: 100vh;
    gap: 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

.home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    
    z-index: -1;
}

.home-content {
    flex: 1;
    max-width: 650px;
    animation: fadeInUp 1s ease-out;
}

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

.hc #hello {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-color);
}

.hc #andy {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 30px;
    margin: 0;
}

.home-content h1 span {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-content h1 span img {
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.home-content h1 span img:hover {
    transform: rotate(360deg) scale(1.1);
}

.body {
    margin: .5rem 0;
}

.body h6 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.body h6 > span {
    position: relative;
    color: var(--accent-color);
    min-width: 300px;
    height: 3.5rem;
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
}

.body h6 > span > span {
    display: block;
    animation: animateWords 20s infinite ease;
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-color);
}

@keyframes animateWords {
    0%, 20% { transform: translateY(0%); }
    25%, 45% { transform: translateY(-100%); }
    50%, 70% { transform: translateY(-200%); }
    75%, 95% { transform: translateY(-300%); }
    100% { transform: translateY(-400%); }
}

#person {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 2rem 0 3rem;
    max-width: 600px;
}

.social-media {
    display: flex;
    gap: .2rem;
    margin: 2.5rem 0;
}

.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-media a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s ease;
}

.social-media a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    border-radius: 50%;
    z-index: -2;
    transition: transform 0.3s ease;
}

.social-media a:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.social-media a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 238, 255, 0.3);
}

.social-media a i {
    transition: all 0.3s ease;
}

.social-media a:hover i {
    transform: scale(1.2);
}

#btn {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

#btn a {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
    background: var(--gradient-2);
    color: var(--bg-color);
    min-width: 200px;
    text-align: center;
}

#btn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

#btn a:hover::before {
    left: 100%;
}

#btn a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
    color: var(--text-color);
    background: transparent;
}

.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
}

.home-img img:hover {
    border-radius: 50%;
    transform: scale(1.05) rotate(5deg);
}

/* Home Section Responsive */
@media (max-width: 1200px) {
    .home {
        padding: 7rem 2rem 3rem;
        gap: 3rem;
    }
    
    #andy {
        font-size: 3.8rem;
    }
    
    .body h6 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .home {
        flex-direction: column;
        text-align: center;
        padding: 6rem 2rem 3rem;
    }
    
    .home-content {
        max-width: 100%;
    }
    
    .body h6 {
        justify-content: center;
    }
    
    .social-media {
        justify-content: center;
    }
    
    #btn {
        justify-content: center;
    }
    
    .home-img {
        margin-top: 3rem;
    }
    
    .home-img img {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    #andy {
        font-size: 3.2rem;
    }
    
    .body h6 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .body h6 > span {
        min-width: 250px;
        height: 3rem;
    }
    
    .body h6 > span > span {
        font-size: 1.8rem;
    }
    
    #person {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .home {
        padding: 5rem 1.5rem 2rem;
    }
    
    #andy {
        font-size: 2.8rem;
    }
    
    .home-content h1 span {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .body h6 {
        font-size: 1.6rem;
    }
    
    .body h6 > span {
        min-width: 200px;
        height: 2.5rem;
    }
    
    .body h6 > span > span {
        font-size: 1.6rem;
    }
    
    #btn a {
        min-width: 150px;
        padding: 0.8rem 1.8rem;
        font-size: 1.1rem;
    }
    
    .home-img img {
        max-width: 280px;
    }
}

/* ========== ABOUT SECTION ========== */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 3rem;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%2300eeff" opacity="0.05" d="M0,500Q250,400,500,500Q750,600,1000,500L1000,1000L0,1000Z"/></svg>');
    background-size: cover;
    z-index: 0;
}

.about > * {
    position: relative;
    z-index: 1;
}

.about-content {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about h2.heading {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about h3 span {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-content button {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--gradient-2);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-content button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

.about-content button:hover::before {
    left: 100%;
}

.about-content button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    color: var(--text-color);
    background: transparent;
    border: 2px solid var(--accent-color);
}

/* Skills Section */
.Skills {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.Skills .heading h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 238, 255, 0.1);
    box-shadow: var(--shadow-light);
}

.skill .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.skill .btn:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(0, 238, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 238, 255, 0.2);
}

.skill .btn img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0, 238, 255, 0.3));
    transition: transform 0.3s ease;
}

.skill .btn:hover img {
    transform: scale(1.1) rotate(5deg);
}

.skill .btn:not(:has(img)) {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About Section Responsive */
@media (max-width: 1200px) {
    .about {
        gap: 3rem;
        padding: 5rem 2rem;
    }
    
    .about h2.heading {
        font-size: 3rem;
    }
    
    .about h3 span {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .about {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .skill {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .skill {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .skill .btn img {
        width: 60px;
        height: 60px;
    }
    
    .about h2.heading {
        font-size: 2.8rem;
    }
    
    .about h3 span {
        font-size: 1.8rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 4rem 1.5rem;
    }
    
    .skill {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill .btn {
        padding: 1rem;
    }
    
    .skill .btn img {
        width: 50px;
        height: 50px;
    }
    
    .about h2.heading {
        font-size: 2.5rem;
    }
    
    .about-content button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* ========== SERVICES SECTION ========== */
.services {
    padding: 6rem 3rem;
    background: var(--bg-color);
    position: relative;
}

.services .heading {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.services-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 238, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.services-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 20px 20px 0 0;
}

.services-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.services-box:hover::after {
    left: 100%;
}

.services-box:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.services-box svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    fill: var(--accent-color);
    filter: drop-shadow(0 5px 15px rgba(0, 238, 255, 0.3));
    transition: transform 0.3s ease;
}

.services-box:hover svg {
    transform: scale(1.1) rotate(10deg);
}

.services-box #serve {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    line-height: 1.3;
}

.services-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.services-box button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--gradient-2);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.services-box button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

/* Services Responsive */
@media (max-width: 1200px) {
    .services {
        padding: 5rem 2rem;
    }
    
    .services .heading {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-box {
        min-height: auto;
        padding: 2rem;
    }
    
    .services-box #serve {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .services {
        padding: 4rem 1.5rem;
    }
    
    .services .heading {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .services-box {
        padding: 1.5rem;
    }
    
    .services-box svg {
        width: 60px;
        height: 60px;
    }
    
    .services-box #serve {
        font-size: 1.8rem;
    }
}

/* ========== ACHIEVEMENTS SECTION ========== */
.portfolio-section {
    padding: 6rem 3rem;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.portfolio-section .heading {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 238, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
    background: rgba(0, 238, 255, 0.05);
}

.counter {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.add {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1rem;
}

/* Achievements Responsive */
@media (max-width: 992px) {
    .portfolio-section {
        padding: 5rem 2rem;
    }
    
    .portfolio-section .heading {
        font-size: 3rem;
    }
    
    .counter {
        font-size: 3.5rem;
    }
    
    .add {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-item {
        padding: 2rem;
    }
    
    .counter {
        font-size: 3rem;
    }
    
    .stat-item p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .portfolio-section {
        padding: 4rem 1.5rem;
    }
    
    .portfolio-section .heading {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .counter {
        font-size: 2.8rem;
    }
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio {
    padding: 6rem 3rem;
    background: var(--bg-color);
}

.portfolio h2.heading {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-box:hover::before {
    opacity: 1;
}

.portfolio-box:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-heavy);
}

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

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

.portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(15, 41, 90, 0.95) 0%, transparent 100%);
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.portfolio-layer p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.portfolio-layer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.portfolio-layer a:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-medium);
}

.portfolio-layer svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-color);
}

/* Portfolio Responsive */
@media (max-width: 1200px) {
    .portfolio {
        padding: 5rem 2rem;
    }
    
    .portfolio h2.heading {
        font-size: 3rem;
    }
    
    .portfolio-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .portfolio-box {
        height: 300px;
        margin-bottom: 30px;
    }
    
    .portfolio-layer {
        padding: 2rem;
    }
    
    .portfolio-layer h4 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .portfolio {
        padding: 4rem 1.5rem;
    }
    
    .portfolio h2.heading {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-box {
        height: 280px;
    }
    
    .portfolio-layer {
        padding: 1.5rem;
    }
}

/* ========== CONTACT SECTION ========== */
.contact {
    padding: 6rem 3rem;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.contact h4 {
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    line-height: 1.2;
    color: var(--text-color);
}

.contact h4 span {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4.5rem;
}

.contact h2.heading {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 238, 255, 0.1);
    box-shadow: var(--shadow-light);
}

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

.input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 15px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.input-box input:focus,
.contact form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 238, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.input-box input::placeholder,
.contact form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact form textarea {
    grid-column: 1 / -1;
    min-height: 200px;
    resize: vertical;
}

.contact form .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 3rem auto 0;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--gradient-2);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.contact form .btn:hover::before {
    left: 100%;
}

.contact form .btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    color: var(--text-color);
    background: transparent;
    border: 2px solid var(--accent-color);
}

/* Contact Responsive */
@media (max-width: 992px) {
    .contact {
        padding: 5rem 2rem;
    }
    
    .contact h4 {
        font-size: 3.5rem;
    }
    
    .contact h4 span {
        font-size: 4rem;
    }
    
    .contact h2.heading {
        font-size: 3rem;
    }
    
    .contact form {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact h4 {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .contact h4 span {
        font-size: 3.5rem;
    }
    
    .contact h2.heading {
        font-size: 2.8rem;
        margin-bottom: 3rem;
    }
    
    .input-box {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .contact h4 {
        font-size: 2.5rem;
    }
    
    .contact h4 span {
        font-size: 3rem;
    }
    
    .contact h2.heading {
        font-size: 2.5rem;
    }
    
    .contact form {
        padding: 1.5rem;
    }
    
    .input-box input,
    .contact form textarea {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .contact form .btn {
        max-width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
    }
}

/* ========== FOOTER ========== */
.footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 238, 255, 0.1);
    text-align: center;
}

.footer-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-text p span {
    color: var(--accent-color);
    margin: 0 5px;
}

.footer-iconTop a {
    position: fixed;
    bottom: 3rem;
    left: 3rem;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bolder;
    color: rgb(0, 238, 255);
    text-decoration: none;
    z-index: 100;
    transition: all 0.3s ease;
}

.footer-iconTop a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1.5rem;
    }
    
    .footer-text p {
        font-size: 1.1rem;
    }
    
    .footer-iconTop a {
        left: 1.5rem;
        bottom: 2rem;
        width: 45px;
        height: 45px;
    }
}

/* ========== WHATSAPP BUTTON ========== */
#whatsapp {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    z-index: 100;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    }
}

#whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

#whatsapp i {
    font-size: 1.8rem;
}

/* WhatsApp Button Responsive */
@media (max-width: 768px) {
    #whatsapp {
        bottom: 6rem;
        right: 1.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    #whatsapp i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    #whatsapp {
        bottom: 5.5rem;
        right: 1rem;
    }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-2);
    border-radius: 6px;
    border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #75FBFD, #0ef);
}

/* ========== SECTION SPACING ========== */
section {
    scroll-margin-top: 80px;
}

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
}

/* ========== LOADING ANIMATION (if enabled) ========== */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    animation: pulse 2s infinite;
}