@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;
}

/* styles.css */
:root {
    --primary: rgb(80, 1, 80);
    --secondary: #4B0082;
    --accent: #9400D3;
    --neon: #ff00ff;
    --cyber-blue: #00ffff;
    --bg-dark: #0a0a0a;
    --grid-color: rgba(138, 43, 226, 0.1);
    --scanner-color: rgba(0, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}

.preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(45deg, rgba(10,10,10,0.98), rgba(75,0,130,0.95));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Cyber Grid */
.cyber-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    inset: 0;
}

.grid-lines.horizontal {
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 49px,
        var(--grid-color) 50px
    );
}

.grid-lines.vertical {
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 49px,
        var(--grid-color) 50px
    );
}

/* Scanner Effect */
.cyber-scanner {
    position: absolute;
    height: 2px;
    width: 100%;
    background: linear-gradient(
        to right,
        transparent,
        var(--cyber-blue),
        transparent
    );
    filter: blur(1px);
    animation: scan 3s linear infinite;
}

.cyber-scanner.reverse {
    animation: scan-reverse 4s linear infinite;
    opacity: 0.5;
}

/* Main Content */
.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(15px, 3vh, 30px);
    width: min(90%, 600px);
    z-index: 1;
}

/* Hexagon Frame */
.hex-container {
    position: absolute;
    inset: -20px;
    animation: rotate 20s linear infinite;
}

.hex-border {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: pulse 2s ease-in-out infinite;
}

.hex-border:nth-child(2) {
    transform: scale(1.1);
    border-color: var(--accent);
    animation-delay: -0.6s;
}

.hex-border:nth-child(3) {
    transform: scale(1.2);
    border-color: var(--cyber-blue);
    animation-delay: -1.2s;
}

/* Text Styles */
.text-glitch-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(5px, 1vh, 10px);
}

.glitch-text {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--primary);
    position: relative;
    text-shadow: 
        2px 2px var(--accent),
        -2px -2px var(--cyber-blue);
    opacity: 0;
    transform: translateY(20px);
}

/* Domain Box */
.domain-container {
    position: relative;
    margin-top: clamp(10px, 2vh, 20px);
}

.domain-box {
    padding: clamp(8px, 2vw, 20px);
    border: 2px solid var(--primary);
    background: rgba(138, 43, 226, 0.1);
    border-radius: 4px;
    position: relative;
    width: min(95%, 300px);
    backdrop-filter: blur(5px);
}

.typing-text {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--cyber-blue);
    text-align: center;
    animation: typing 2s steps(20) 1s forwards,
               blink-caret 0.75s step-end infinite;
    width: 0;
    white-space: nowrap;
    overflow: hidden;
}

/* Loading Interface */
.loading-container {
    width: min(90%, 300px);
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--primary);
    padding: 15px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.interface-header {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: var(--cyber-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loading-bar {
    width: 100%;
    height: clamp(3px, 0.8vh, 4px);
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--cyber-blue));
    box-shadow: 0 0 10px var(--cyber-blue);
}

/* Animations */
@keyframes scan {
    from { transform: translateY(-100vh); }
    to { transform: translateY(100vh); }
}

@keyframes scan-reverse {
    from { transform: translateY(100vh); }
    to { transform: translateY(-100vh); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-right-color: transparent }
    50% { border-right-color: var(--cyber-blue) }
}

/* Responsive Design */
@media (max-width: 480px) {
    .preloader-content {
        gap: 15px;
        padding: 20px;
    }

    .hex-container {
        inset: -10px;
    }

    .tech-details {
        font-size: 0.7rem;
    }
}

@media (max-height: 600px) {
    .preloader-content {
        gap: 10px;
    }

    .loading-container {
        padding: 10px;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    .domain-box,
    .loading-container {
        -webkit-tap-highlight-color: transparent;
    }
}

/* end of preloader */

/* Hide default cursor */
html, body {
    cursor: none;
  }
  
  body::before {
    content: '';
    position: fixed;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, purple 40%, rgba(138, 43, 226, 0) 70%);
    border: 2px solid #8a2be2;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
  }
  
  /* Position the custom cursor based on CSS variables */
  body::before {
    left: calc(var(--mouse-x) - 12.5px);
    top: calc(var(--mouse-y) - 12.5px);
  }
  
  body {
    --mouse-x: 50%;
    --mouse-y: 50%;
  }
  

/* Scrollbar styles for Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
  }
  
  ::-webkit-scrollbar-track {
    background: #1a1a1d;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #6a0dad, #8a2be2);
    border-radius: 10px;
    border: 2px solid #1a1a1d;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #8a2be2, #b19cd9);
  }
  
  /* Scrollbar styles for Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: rgb(94, 0, 94) #000000;
  }
  
  /* Optional smooth scrolling for a futuristic feel */
  html {
    scroll-behavior: smooth;
  }

  
:root {
    --bg-color: 
    --text-color: #333;
    --main-color: purple;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

*::selection {
    background: var(--main-color);
    color: white;
}

.dark-mode {
    --bg-color: #0b061f;
    --text-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .7);
}

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

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* General header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 7%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.header.sticky {
    background: rgba(255, 255, 255, 0.185); /* A sleek dark background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.425);
}

.logo {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 700; /* Bolder weight for more impact */
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: green;
    border-radius: 50%;
    animation: pulse 2s infinite;
    margin-left: -520px;
}

.logo:hover {
    color: var(--accent-color); /* Change to accent color on hover */
}

/* Navbar styles */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 2.5rem; /* Better spacing */
}

.navbar a {
    position: relative;
    font-size: 1.6rem;
    color: black;
    font-weight: 500;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--main-color); /* Subtle hover effect */
}

.navbar a.active {
    color: var(--main-color);
}

.navbar a.active::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--main-color);
    opacity: 1;
    transition: width 0.3s;
}

.navbar a::before {
    width: 0;
    
}

.header.sticky .navbar a.active::before {
    background: whitesmoke;
}

/* Actions styles (dark mode and hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#darkMode-icon {
    font-size: 2.4rem;
    color: purple;
    cursor: pointer;
    transition: color 0.3s ease;
}

#darkMode-icon:hover {
    color: var(--accent-color); /* Accent hover color */
}

#menu-icon {
    font-size: 3rem;
    color: var(--white-color);
    display: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.header.sticky #darkMode-icon,
.header.sticky #menu-icon {
    color: var(--text-color);
}

/* Modern hamburger icon transition */
#menu-icon span {
    display: block;
    width: 30px;
    height: 4px;
    margin: 6px auto;
    background: var(--text-color);
    transition: all 0.3s ease;
}

#menu-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#menu-icon.open span:nth-child(2) {
    opacity: 0;
}

#menu-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.4s ease;
    }

    .navbar ul {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem; /* Spacing between menu items */
    }

    .navbar a {
        font-size: 2rem;
        padding: 1rem 0;
        color: var(--white-color);
    }

    .navbar.active {
        left: 0;
    }

    #menu-icon {
        display: block;
    }
}




/* Home section */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 5rem 7% 2rem;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(var(--main-color-rgb), 0.03));
    transform: skewX(-15deg);
    z-index: 0;
}



.home-content {
    max-width: 50%;
    z-index: 1;
}

.home-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin: 1rem 0;
    background: linear-gradient(45deg, var(--main-color), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-content p {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.home-content .description {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

.social-media {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    color: var(--main-color);
    transition: 0.5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 50px;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: 0.5s ease;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
}

.skills-container {
    position: absolute;
    top: 50%;
    right: 7%;
    transform: translateY(-50%);
    z-index: 1;
}

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

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    transition: 0.5s ease;
    cursor: pointer;
    will-change: transform, box-shadow;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.skill span {
    font-size: 1.4rem;
    color: var(--text-color);
}

.home-img {
    position: absolute;
    bottom: 0;
    right: 7%;
    max-width: 45%;
    pointer-events: none;
}

.home-img img {
    width: 100%;
    opacity: 0.8;
    transition: 0.5s ease;
}

.home-img img:hover {
    opacity: 1;
}

@media (max-width: 1200px) {
    .home-content h1 {
        font-size: 4rem;
    }
    
    .home-content p {
        font-size: 1.6rem;
    }
    
    .skill i {
        font-size: 2.5rem;
    }
    
    .skill span {
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {
    .home {
        flex-direction: column;
        padding-top: 10rem;
    }

    .home-content {
        max-width: 100%;
        text-align: center;
    }

    .home-content h3,
    .home-content h1,
    .home-content p {
        justify-content: center;
    }

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

    .skills-container {
        position: static;
        transform: none;
        margin-top: 3rem;
    }

    .home-img {
        position: static;
        max-width: 80%;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .home-content h1 {
        font-size: 3.5rem;
    }

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

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

@media (max-width: 480px) {
    .home {
        padding: 5rem 5% 2rem;
    }

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

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

    .home-content p {
        font-size: 1.2rem;
    }

    .home-content .description {
        font-size: 1.4rem;
    }

    .btn {
        padding: 1rem 2.4rem;
        font-size: 1.4rem;
    }

    .skills-box {
        gap: 1.5rem;
    }

    .skill {
        padding: 1rem;
    }

    .skill i {
        font-size: 2rem;
    }

    .skill span {
        font-size: 1rem;
    }
}

/* about */

/* About Section */
.about {
    padding: 120px 0;
    background-color: var(--whitecolor);
    overflow: hidden;
}

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

.section-heading {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    animation: fadeInDown 1s ease;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--main-color);
}

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

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    position: relative;
    animation: fadeInLeft 1s ease;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.social-icons {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 20px;
}

.icon {
    background-color: var(--white-color);
    color: var(--main-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon:hover {
    background-color: var(--main-color);
    color: var(--white-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
    animation: fadeInRight 1s ease;
}

.about-text h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.highlight {
    color: var(--main-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(128, 0, 128, 0.2);
    z-index: -1;
}

.tagline {
    font-size: 1.5rem;
    color: var(--main-color);
    margin-bottom: 30px;
    font-style: italic;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.info-item {
    text-align: center;
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.info-item i {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 15px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.info-item p {
    font-size: 0.9rem;
    color: #666;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.skill-tag {
    background-color: var(--white-color);
    color: var(--main-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skill-tag:hover {
    background-color: var(--main-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.aboutbtn {
    display: inline-flex;
    align-items: center;
    background-color: var(--main-color);
    color: var(--white-color);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.aboutbtn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.aboutbtn:hover {
    color: black;
    background: linear-gradient(90deg, transparent, rgb(255, 255, 255), transparent);
    transition: 0.5s;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.aboutbtn:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-img, .about-text {
        flex: none;
        width: 100%;
    }

    .social-icons {
        position: static;
        justify-content: center;
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .section-heading {
        font-size: 2.5rem;
    }

    .about-text h3 {
        font-size: 2.5rem;
    }

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

@media screen and (max-width: 480px) {
    .section-heading {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .about-description {
        font-size: 1.1rem;
    }

    .skills {
        justify-content: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* services */
/* services */
.services {
    min-height: auto;
    padding: 8rem 9% 2rem;
    background: var(--second-bg-color);
}

.services .heading {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    animation: fadeInDown 1s ease;
    position: relative;
}

.services .heading after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--main-color);
}

.services .heading span {
    color: var(--main-color);
}

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

.services-container .services-box {
    background: var(--bg-color);
    padding: 4rem 3rem;
    border-radius: 2rem;
    box-shadow: 0 0 2rem rgba(0, 0, 0, .1);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.services-container .services-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, var(--main-color), transparent);
    transform: rotate(45deg);
    opacity: 0;
    transition: 0.5s;
}

.services-container .services-box:hover::before {
    top: -100%;
    left: -100%;
    opacity: 0.2;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: translateY(-1rem);
}

.services-box .icon-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 8rem;
    height: 8rem;
    background: var(--main-color);
    border-radius: 50%;
    margin-bottom: 2rem;
    transition: 0.5s ease;
}

.services-box:hover .icon-container {
    background: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.services-box .icon-container i {
    font-size: 4rem;
    color: white;
    transition: 0.5s ease;
}

.services-box:hover .icon-container i {
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.services-box:hover h3 {
    color: var(--main-color);
}

.services-box p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.service-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 3rem;
}

.service-features li {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.service-features li i {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--main-color);
}

.services-box .btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background-color: var(--main-color);
    color: white;
    border-radius: 4rem;
    font-size: 1.6rem;
    font-weight: 600;
    transition: 0.5s ease;
    position: relative;
    overflow: hidden;
}

.services-box .btn::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: 0.5s;
}

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

.services-box .btn:hover {
    background-color: var(--bg-color);
    color: var(--main-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services {
        padding: 6rem 3%;
    }
}

@media (max-width: 991px) {
    .services .heading {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .services .heading {
        font-size: 3.5rem;
    }
    .services-container .services-box {
        padding: 3rem 2rem;
    }
}

@media (max-width: 450px) {
    .services .heading {
        font-size: 3rem;
    }
    .services-box h3 {
        font-size: 2.2rem;
    }
    .services-box p {
        font-size: 1.4rem;
    }
    .service-features li {
        font-size: 1.3rem;
    }
    .services-box .btn {
        font-size: 1.4rem;
        padding: 1rem 2.4rem;
    }
}




/* portfolio css */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}



.portfolio {
    padding: 8rem 9% 4rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}


.content-wrapper {
    position: relative;
    z-index: 1;
}

.portfolio .heading {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    
}

.portfolio .heading span {
    color: var(--primary-color);
}




.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--main-color);
    color: rgb(128, 0, 128);
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(128, 0, 128, 0.418);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 200%;
    height: 200%;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--second-bg-color);
}

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

.portfolio-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: translateY(50px);
    opacity: 0;
}

.portfolio-card.show {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(14,255,255,0.3);
}

.portfolio-content {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.portfolio-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

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

.portfolio-content p {
    font-size: 1rem;
    color: var(--text-color);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.btn-details {
    padding: 0.8rem 1.5rem;
    background-color: var(--white-color);
    color: var(--second-bg-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-details::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--main-color);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.btn-details:hover::before {
    width: 200%;
    height: 200%;
}

.btn-details span {
    position: relative;
    z-index: 1;
}

.btn-details:hover {
    color: var(--white-color);
}

.more-projects {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-more {
    padding: 1rem 2rem;
    background-color:  rgba(0, 0, 0, 0.267);
    color: var(--second-bg-color);
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--white-color);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.btn-more:hover::before {
    width: 200%;
    height: 200%;
}

.btn-more span {
    position: relative;
    z-index: 1;
}

.btn-more:hover {
    color: var(--main-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.801);
    overflow-y: auto;
    backdrop-filter: blur;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.288);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: modalFadeIn 0.5s ease;
}

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

.close-modal {
    color: var(--main-color);
    float: right;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--white-color);
}

.modal-content h2 {
    color: var(--main-color);
    margin-bottom: 1rem;
}

.modal-content img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1rem;
    color: white;
}

.btn-view-project {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--main-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-view-project::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--white-color);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.btn-view-project:hover::before {
    width: 200%;
    height: 200%;
}

.btn-view-project span {
    position: relative;
    z-index: 1;
}

.btn-view-project:hover {
    color: var(--main-color);
}

@media (max-width: 1200px) {
    .portfolio {
        padding: 6rem 3%;
    }
}

@media (max-width: 991px) {
    .portfolio .heading {
        font-size: 3.5rem;
    }
}
@media (max-width: 768px) {
    .portfolio .heading {
        font-size: 3rem;
    }
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    .filter-btn {
        width: 80%;
        margin: 0.5rem 0;
    }
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 90%;
        margin: 5% auto;
    }
}

@media (max-width: 450px) {
    .portfolio .heading {
        font-size: 2.5rem;
    }
    .portfolio-content h3 {
        font-size: 1.5rem;
    }
    .portfolio-content p {
        font-size: 0.9rem;
    }
    .btn-details,
    .btn-view-project {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .btn-more {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}


.testimonial {
    background: var(--second-bg-color);
    padding: 8rem 0;
    overflow: hidden;
}

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

.testimonial .heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.testimonial .heading span {
    color: var(--main-color);
    position: relative;
}

.testimonial .heading span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--main-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.testimonial .heading:hover span::after {
    transform: scaleX(1);
}

.testimonial-slider {
    padding: 2rem;
    position: relative;
}

.testimonial-card {
    background: var(--bg-color);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.testimonial-content {
    position: relative;
}

.testimonial-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.client-info img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--main-color);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .client-info img {
    transform: scale(1.1);
}

.client-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
}

.client-info span {
    font-size: 1.4rem;
    color: var(--main-color);
}

.quote-icon {
    position: absolute;
    top: -2rem;
    right: -1rem;
    font-size: 5rem;
    color: var(--main-color);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.testimonial-card:hover .quote-icon {
    transform: rotate(15deg);
    opacity: 0.5;
}

.testimonial-navigation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.swiper-button-next,
.swiper-button-prev {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: var(--main-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--text-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    color: var(--bg-color);
}

.swiper-pagination {
    position: relative;
    width: auto;
    bottom: auto;
    left: auto;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px;
    }
}

.swiper-pagination-bullet {
    width: 1rem;
    height: 1rem;
    background: var(--main-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 2.5rem;
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .testimonial {
        padding: 6rem 0;
    }

    .testimonial .heading {
        font-size: 3.5rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-content p {
        font-size: 1.4rem;
    }

    .client-info h3 {
        font-size: 1.6rem;
    }

    .client-info span {
        font-size: 1.2rem;
    }
}

@media (max-width: 450px) {
    .testimonial .heading {
        font-size: 3rem;
    }

    .testimonial-content p {
        font-size: 1.3rem;
    }

    .client-info img {
        width: 5rem;
        height: 5rem;
    }

    .client-info h3 {
        font-size: 1.4rem;
    }

    .client-info span {
        font-size: 1.1rem;
    }
}


:root {
    --primary-color: purple;
    --primary-light: purple;  --main-color: purple;
    --primary-dark: purple;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white-color: #fff;
}

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

:root {
    --bg-color: #ffffff;

    --card-bg: #f8f9fa;
    --input-bg: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark-mode {
    
    --card-bg: #00000034;
    --input-bg: #000000;
    --shadow-color: rgba(22, 20, 20, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-color);
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover, .contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info ul li i {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--input-bg);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-5px);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: var(--input-bg);
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: black;
}

.submit-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .contact-info, .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info ul li i {
        font-size: 1.2rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(105deg, #000000,  rgb(43, 0, 43), black, #000000);
    color: var(--white-color);
    padding: 80px 0 40px;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    height: 70px;
    filter: drop-shadow(0px 0px 5px rgb(0, 0, 0));
}

/* Bio Section */
.footer-bio {
    max-width: 300px;
}

.footer-bio h4 {
    color: var(--primary-light);
    margin-bottom: 10px;
}

.footer-bio p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Quick Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* Latest Projects */
.footer-projects {
    max-width: 250px;
}

.footer-projects h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
}

.footer-projects ul {
    list-style: none;
    padding: 0;
}

.footer-projects ul li {
    margin-bottom: 10px;
}

.footer-projects ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-projects ul li a:hover {
    color: var(--primary-light);
}

/* Social Links */
.footer-social h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-light);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(245, 245, 245, 0.24);
    color: var(--white-color);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.scroll-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-4px);
}

/* Media Queries */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links, .footer-projects, .footer-bio {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}
