/*
Theme Name: Sanviraj Portfolio v5
Theme URI: https://sanviraj.com
Author: Antigravity
Author URI: https://sanviraj.com
Description: High-performance, premium freelancer portfolio theme. v5.0 Standard Zip.
Version: 5.0
License: GNU General Public License v2 or later
Text Domain: sanviraj
*/

:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --primary: #00f2ea;
    --secondary: #ff0055;
    --text-main: #ffffff;
    --text-muted: #888888;

    /* Gradients */
    --gradient-glow: radial-gradient(circle at center, rgba(0, 242, 234, 0.15) 0%, transparent 70%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #a5a5a5 100%);

    /* Fonts */
    --font-heading: 'Outfit',
        sans-serif;
    --font-body: 'Inter',
        sans-serif;

    /* Spacing */
    --container: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: none;
    min-width: 120px;
    text-align: center;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    margin-top: 20px;
    display: inline-block;
}

.btn-small:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-highlight {
    color: var(--primary);
}

.main-navigation ul {
    display: flex;
    gap: 40px;
}

.main-navigation a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    left: 0;
    transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    top: 18px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .main-navigation a {
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 242, 234, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 242, 234, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.hero h1 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically if needed */
    position: relative;
    perspective: 1000px;
}

.hero-card {
    position: relative;
    width: 380px;
    height: 480px;
    /* Fixed height for consistency */
    border-radius: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-card:hover {
    transform: rotateY(0) rotateX(0) translateY(-10px);
    border-color: var(--primary);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(0.9) contrast(1.1);
    /* Subtle grade */
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 2;
}

/* Background Effects */
.glow-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    filter: blur(100px);
    border-radius: 50%;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.glow-effect-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(255, 0, 85, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    z-index: -1;
    animation: float 15s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50px);
    }
}

/* Trust Strip */
.trust-strip {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Services */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-features {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.service-features li {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* Process Section */
.process-section {
    background: rgba(255, 255, 255, 0.01);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.2);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.step-divider {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 25px;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .step-divider {
        width: 2px;
        height: 30px;
        margin: 0;
    }
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s ease;
}

.portfolio-thumb {
    height: 250px;
    background: #111;
    position: relative;
    overflow: hidden;
}

.portfolio-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 30px;
}

.read-more {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    /* Enhanced padding */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Added border for definition */
}

.testimonial-card p {
    font-style: italic;
    color: #ddd;
    margin-bottom: 20px;
    font-size: 1.1rem;
    /* Slightly larger text */
}

.client-info strong {
    display: block;
    color: var(--primary);
    /* Highlight name */
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA Block */
.cta-block {
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    margin-bottom: 10px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Contact Form */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
}

.platform-links {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.platform-btn {
    min-width: 120px;
    text-align: center;
}

/* Single Project */
.single-project-page {
    padding-top: 100px;
}

.project-header {
    margin-bottom: 40px;
}

.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.project-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

@media (max-width: 900px) {
    .project-content-grid {
        grid-template-columns: 1fr;
    }
}

.entry-content p {
    margin-bottom: 20px;
}

/* Make iframe responsive */
.entry-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sidebar-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.sidebar-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.info-list li {
    margin-bottom: 15px;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
    background: #020202;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.brand h3 {
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Animation Classes */
.animate-up {
    opacity: 1;
    /* Default visible to prevent JS blocking issues */
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.hidden-start {
    opacity: 0;
    transform: translateY(30px);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}