
/* =================================
   SADMAN - PROFESSIONAL PORTFOLIO
   Theme: Dark Neon Cyan
================================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #080d19;
    --secondary-bg: #101a2d;
    --main-color: #00c8ff;
    --text-color: #ffffff;
    --second-text: #aab7ca;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navbar */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 13, 25, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 200, 255, 0.15);
}

.navbar {
    min-height: 80px;
    max-width: 1400px;
    margin: auto;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    color: var(--main-color);
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

.logo:hover {
    text-shadow: 0 0 20px var(--main-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 38px;
}

.nav-links a {
    text-decoration: none;
    color: var(--second-text);
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--main-color);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--main-color);
    left: 0;
    bottom: -7px;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* All Sections */
section {
    min-height: 65vh;
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-margin-top: 80px;
}

section h2 {
    font-size: clamp(30px, 5vw, 45px);
    margin-bottom: 20px;
}

section p {
    color: var(--second-text);
    font-size: 17px;
    line-height: 1.8;
    max-width: 750px;
}

/* Home Section */
#home {
    min-height: calc(100vh - 80px);
    align-items: flex-start;
    text-align: left;
    background:
        radial-gradient(circle at 85% 50%,
        rgba(0, 200, 255, 0.12), transparent 35%),
        linear-gradient(120deg, #080d19, #101a2d);
}

#home h1 {
    font-size: clamp(42px, 7vw, 85px);
    font-weight: 800;
    line-height: 1.2;
    animation: fadeUp 1s ease;
}

#home h1 span {
    color: var(--main-color);
    text-shadow: 0 0 25px rgba(0, 200, 255, 0.25);
}

#home h2 {
    color: var(--main-color);
    font-size: clamp(23px, 4vw, 35px);
    margin: 15px 0;
}

#home p {
    margin: 10px 0 30px;
    font-size: 18px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 10px;
    background: var(--main-color);
    color: #06111d;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--main-color);
    transition: 0.3s ease;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.35);
    transform: translateY(-5px);
}

/* About Section */
#about {
    background: var(--secondary-bg);
}

/* Skills Section */
#skills {
    background: var(--bg-color);
}

/* Projects Section */
#projects {
    background: var(--secondary-bg);
}

/* Contact Section */
#contact {
    background: var(--bg-color);
}

/* Section Animation */
section h2,
section p {
    animation: fadeUp 0.8s ease both;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .navbar {
        padding: 15px 5%;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 13px;
    }

    #home {
        align-items: center;
        text-align: center;
        padding: 80px 6%;
    }

    section {
        padding: 80px 6%;
    }

    #home p {
        font-size: 15px;
    }
}

/* =================================
   PREMIUM HERO SECTION
================================= */

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 80px 8%;
}

.hero-content {
    flex: 1;
}

.hero-tag {
    color: #00c8ff !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: clamp(45px, 6vw, 78px);
    font-weight: 800;
}

.hero-content h1 span,
.hero-content h2 span {
    color: #00c8ff;
}

.hero-content h2 {
    font-size: clamp(25px, 3vw, 38px);
    margin: 15px 0;
}

.hero-description {
    max-width: 650px;
    margin: 20px 0 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.btn-outline {
    background: transparent;
    color: #00c8ff;
}

.btn-outline:hover {
    background: #00c8ff;
    color: #080d19;
}

.hero-social {
    display: flex;
    gap: 12px;
    margin-top: 35px;
    color: #aab7ca;
    font-size: 14px;
}

.hero-image {
    flex: 0 1 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-glow {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    padding: 7px;
    border: 2px solid #00c8ff;
    border-radius: 35px;
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.4),
        0 0 60px rgba(0, 200, 255, 0.15);
    animation: floating 4s ease-in-out infinite;
    overflow: hidden;
}

.image-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

/* Floating Animation */

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


/* =================================
   PROFESSIONAL PROJECT CARDS
================================= */

.projects-section {
    background: #101a2d;
    padding: 100px 8%;
}

.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.section-heading > p:first-child {
    color: #00c8ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
}

.section-heading h2 {
    margin: 12px 0;
}

.section-heading h2 span {
    color: #00c8ff;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1250px;
    margin: auto;
}

.project-card {
    background: rgba(8, 13, 25, 0.8);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: #00c8ff;
    box-shadow: 0 15px 40px rgba(0, 200, 255, 0.15);
}

.project-icon {
    font-size: 38px;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tech span {
    background: rgba(0, 200, 255, 0.1);
    color: #00c8ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.project-link {
    color: #00c8ff;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: 0.3s;
}

.project-link:hover {
    letter-spacing: 1px;
}


/* =================================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 900px) {

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 45px;
    }

    .hero-buttons,
    .hero-social {
        justify-content: center;
    }

    .hero-image {
        flex: auto;
        width: 100%;
    }

    .image-glow {
        max-width: 300px;
    }

    .project-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .project-container {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 6%;
    }

    .hero-tag {
        font-size: 11px !important;
        letter-spacing: 3px;
    }

    .hero-social {
        flex-wrap: wrap;
    }
}

/* Scroll Reveal */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* SECTION COMMON */
.section {
    padding: 100px 8%;
    background: #0b1220;
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title span {
    color: #00c8ff;
    letter-spacing: 4px;
    font-size: 13px;
}

.section-title h2 {
    font-size: 42px;
    margin-top: 12px;
}

.section-title h2 b {
    color: #00c8ff;
}

/* ABOUT */
.about-content {
    max-width: 850px;
    margin: auto;
}

.about-text {
    background: #080e1b;
    border: 1px solid #12354b;
    border-radius: 20px;
    padding: 40px;
    transition: 0.3s;
}

.about-text:hover {
    border-color: #00c8ff;
    transform: translateY(-5px);
}

.about-text h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.about-text p {
    color: #aab8cc;
    line-height: 1.9;
    font-size: 17px;
    margin-bottom: 25px;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card {
    background: #080e1b;
    padding: 30px;
    border-radius: 18px;
    border: 1px solid #12354b;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: #00c8ff;
    box-shadow: 0 0 25px #00c8ff20;
}

.skill-card h3 {
    color: #00c8ff;
    margin-bottom: 20px;
}

.skill-bar {
    height: 9px;
    background: #1b293b;
    border-radius: 20px;
    overflow: hidden;
}

.skill-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00d9ff);
    border-radius: 20px;
}

.skill-card p {
    color: #aab8cc;
    margin-top: 12px;
}

/* SOCIAL */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    text-decoration: none;
    color: #00c8ff;
    background: #080e1b;
    border: 1px solid #12354b;
    padding: 16px 28px;
    border-radius: 12px;
    transition: 0.3s;
}

.social-links a:hover {
    background: #00c8ff;
    color: #06101b;
    transform: translateY(-5px);
}

/* CONTACT */
.contact-form {
    max-width: 650px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    background: #080e1b;
    border: 1px solid #12354b;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00c8ff;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form button {
    cursor: pointer;
    border: none;
    font-size: 16px;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 75px 6%;
    }

    .section-title h2 {
        font-size: 32px;
    }
}

/* ==============================
   RESPONSIVE DESIGN - SADMAN
============================== */

/* Tablet Responsive */
@media (max-width: 900px) {

    .navbar {
        padding: 20px 5%;
        flex-wrap: wrap;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero {
        padding: 100px 5% 60px;
        gap: 35px;
    }

    .project-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Mobile Responsive */
@media (max-width: 600px) {

    html {
        scroll-padding-top: 120px;
    }

    .navbar {
        flex-direction: column;
        padding: 15px 4%;
        gap: 15px;
    }

    .logo {
        font-size: 27px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 12px 18px;
        padding: 0;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 80px 6% 50px;
        gap: 30px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        max-width: 230px;
        width: 100%;
    }

    .section {
        padding: 65px 6%;
    }

    .about-content {
        padding: 25px 18px;
    }

    .about-text h3 {
        font-size: 22px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.8;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-container {
        grid-template-columns: 1fr;
        padding: 0 5%;
    }

    .project-card {
        width: 100%;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .contact-form {
        width: 100%;
        padding: 0 10px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        font-size: 15px;
    }

    .section-title h2 {
        font-size: 32px;
    }

}

/* Mobile Touch Animation */
@media (hover: none) and (pointer: coarse) {

    .project-card:active,
    .skill-card:active,
    .btn:active,
    .hero-image:active {
        transform: translateY(-8px) scale(1.03);
        transition: 0.3s ease;
    }

    .project-card,
    .skill-card,
    .btn,
    .hero-image {
        transition: all 0.3s ease;
    }
}

/* PREMIUM MOBILE TAP ANIMATION */

@keyframes mobileTap {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06) translateY(-6px);
    }

    100% {
        transform: scale(1);
    }
}

@media (hover: none) and (pointer: coarse) {

    .project-card:active,
    .skill-card:active,
    .btn:active,
    .social-links a:active {
        animation: mobileTap 0.45s ease;
        box-shadow: 0 0 25px rgba(0, 200, 255, 0.5);
    }

}

/* MOBILE TAP ANIMATION */

.tap-animate {
    animation: tapEffect 0.6s ease-in-out !important;
}

@keyframes tapEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 transparent;
    }

    50% {
        transform: scale(1.06) translateY(-8px);
        box-shadow: 0 0 30px rgba(0, 200, 255, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 transparent;
    }
}

/* SADMAN PREMIUM TAP GLOW */

.tap-glow {
    animation: sadmanGlow 0.8s ease-in-out !important;
    border-color: #00d9ff !important;
}

@keyframes sadmanGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 transparent;
    }

    50% {
        transform: scale(1.04);
        box-shadow:
            0 0 15px #00d9ff,
            0 0 35px #00d9ff,
            0 0 60px rgba(0, 217, 255, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 transparent;
    }
}

/* =================================
   SADMAN PREMIUM ANIMATION SYSTEM
================================= */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Premium Card Effects */
.skill-card,
.project-card,
.about-content {
    transition: transform 0.4s ease,
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    border: 1px solid rgba(0, 200, 255, 0.2);
}

/* Laptop Hover Effects */
@media (hover: hover) and (pointer: fine) {

    .skill-card:hover,
    .project-card:hover,
    .about-content:hover {
        transform: translateY(-12px) scale(1.02);
        border-color: #00d9ff;
        box-shadow:
            0 0 15px rgba(0, 217, 255, 0.4),
            0 0 35px rgba(0, 217, 255, 0.2);
    }

}

/* Premium Button */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transform: skewX(-25deg);
}

.btn:hover::before {
    left: 150%;
    transition: left 0.7s ease;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.6);
}

/* Mobile Premium Glow */
.premium-glow {
    animation: premiumGlow 0.7s ease;
}

@keyframes premiumGlow {
    0% {
        box-shadow: 0 0 0 transparent;
        transform: scale(1);
    }

    50% {
        box-shadow:
            0 0 20px #00d9ff,
            0 0 45px rgba(0, 217, 255, 0.5);
        transform: scale(1.025);
    }

    100% {
        box-shadow: 0 0 0 transparent;
        transform: scale(1);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.8s ease,
                transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =================================
   PREMIUM MOBILE TAP ANIMATION
================================= */

.project-card,
.skill-card,
.btn,
.social-links a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Premium Glow Animation */

.premium-glow {
    animation: premiumTapGlow 0.55s ease-out !important;
}

@keyframes premiumTapGlow {

    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 200, 255, 0);
        filter: brightness(1);
    }

    35% {
        transform: scale(0.96);
        box-shadow:
            0 0 15px #00c8ff,
            0 0 35px rgba(0, 200, 255, 0.7),
            inset 0 0 15px rgba(0, 200, 255, 0.2);
        filter: brightness(1.3);
    }

    70% {
        transform: scale(1.02);
        box-shadow:
            0 0 25px #00c8ff,
            0 0 50px rgba(0, 200, 255, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 200, 255, 0);
        filter: brightness(1);
    }

}

/* Mobile Touch Feedback */

@media (hover: none) and (pointer: coarse) {

    .project-card:active,
    .skill-card:active,
    .btn:active,
    .social-links a:active {
        transform: scale(0.96);
        transition: transform 0.15s ease;
    }

}

/* PREMIUM HOVER + MOBILE TOUCH EFFECT */

.project-card,
.skill-card,
.btn,
.social-links a {
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                filter 0.3s ease;
}

/* Laptop Hover */

@media (hover: hover) and (pointer: fine) {
    .project-card:hover,
    .skill-card:hover,
    .btn:hover,
    .social-links a:hover {
        transform: translateY(-10px) scale(1.04);
        box-shadow:
            0 0 20px #00c8ff,
            0 0 40px rgba(0, 200, 255, 0.5);
        filter: brightness(1.2);
    }
}

/* Mobile Touch */

@media (hover: none) and (pointer: coarse) {
    .project-card:active,
    .skill-card:active,
    .btn:active,
    .social-links a:active {
        transform: translateY(-8px) scale(1.04);
        box-shadow:
            0 0 20px #00c8ff,
            0 0 40px rgba(0, 200, 255, 0.6);
        filter: brightness(1.2);
    }
}
