:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --accent: #14b8a6;
    --accent-hover: #0d9488;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.highlight-text {
    background: linear-gradient(90deg, #14b8a6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #14b8a6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset navbar */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Hero Visual Elements */
.hero-visual {
    width: 430px;
    height: 430px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.5s ease;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 20px 80px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(20, 184, 166, 0.18);
    border: none;
}

.image-wrapper:hover {
    transform: scale(1.03);
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent, rgba(255, 255, 255, 0.05));
    z-index: 10;
    border-radius: 50%;
    pointer-events: none;
}

/* Decorative Backdrop */
.decorative-blur {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(to bottom right, rgba(20, 184, 166, 0.25), transparent, rgba(20, 184, 166, 0.1));
    filter: blur(60px);
    transform: scale(1.1);
    z-index: 0;
}

/* Rotating Rings */
.rotating-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ring-1 {
    inset: -24px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    animation: spinSlow 22s linear infinite;
}

.ring-2 {
    inset: -48px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: spinReverse 30s linear infinite;
}

.ring-3 {
    inset: -64px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

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

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

.shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%);
    transform: translateX(-120%);
    animation: shineMove 5s linear infinite;
    z-index: 12;
    pointer-events: none;
}

@keyframes shineMove {
    to { transform: translateX(120%); }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transform: scale(1.02);
    border: none;
    box-shadow: none;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    z-index: 20;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.badge-top-left {
    top: -20px;
    left: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.badge-bottom-right {
    bottom: 40px;
    right: -30px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    animation-delay: 2s;
}

/* Floating Dots */
.float-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 5;
    animation: float 5s ease-in-out infinite;
}

.dot-1 {
    top: -12px;
    right: -16px;
    width: 16px;
    height: 16px;
    background: var(--text-main);
    box-shadow: 0 0 18px var(--text-main);
}

.dot-2 {
    bottom: -8px;
    left: -20px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
    animation-delay: 1s;
}

.dot-3 {
    top: 64px;
    left: -32px;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 16px rgba(255,255,255,0.6);
    animation-delay: 2s;
}


/* Services Grid */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.service-card li::before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Projects Showcase */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    group: hover;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-overlay p {
    color: var(--text-muted);
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.05s;
}

.project-card:hover .project-overlay h3,
.project-card:hover .project-overlay p {
    transform: translateY(0);
}

/* Technical Skills */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    text-align: center;
}

.skill-item {
    background: var(--bg-card);
    padding: 2rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 3rem;
    color: var(--accent);
}

.skill-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    background: var(--bg-primary);
}

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

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular::before {
    content: 'Popular';
    position: absolute;
    top: 25px;
    right: -40px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 5px 45px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.pricing-delivery {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-features li i {
    color: var(--accent);
    margin-top: 4px;
}

.pricing-card .btn {
    width: 100%;
}

/* Tools Section */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.tool-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    cursor: default;
}

.tool-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.2);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    right: -11px; /* 50% alignment */
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--bg-primary);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
    right: auto;
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.timeline-content p,
.timeline-content ul {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-content ul li::marker {
    color: var(--accent);
}

/* Awards Section */
.awards {
    background: var(--bg-primary);
}

.award-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    transition: var(--transition);
}

.award-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.award-image {
    flex: 0 0 350px;
    border-radius: 8px;
    overflow: hidden;
}

.award-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.award-card:hover .award-image img {
    transform: scale(1.05);
}

.award-content {
    flex: 1;
}

.award-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.award-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.award-content h4 {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .award-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .award-image {
        flex: auto;
        width: 100%;
    }
}

/* Contact Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.info-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 100%;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 2rem;
        margin-bottom: 2rem;
        width: 320px;
        height: 320px;
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item, 
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        gap: 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li a {
        display: block;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-visual {
        width: 280px;
        height: 280px;
    }
    .section-title {
        font-size: 2rem;
    }
    .container {
        padding: 0 1rem;
    }
    .service-card, .pricing-card, .award-card, .timeline-content {
        padding: 1.5rem;
    }
}

/* --- PREMIUM GRADIENT BACKGROUND --- */
body {
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 40%, #020617 100%) !important;
    background-attachment: fixed !important;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.15;
    pointer-events: none;
    z-index: 9999;
}

/* Make section backgrounds transparent to show the gradient */
.services, .skills, .pricing, .experience, .awards, .tools-grid, .footer {
    background: transparent !important;
}

.footer-bottom {
    background: rgba(0,0,0,0.3) !important;
}

/* --- AMBIENT GRADIENT ORBS --- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}
.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15), transparent 70%);
}
.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
}
.orb-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
    animation: floatOrb 15s infinite alternate ease-in-out;
}
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, -50px) scale(1.1); }
}
