/* Base Styles & Variables */
:root {
    --primary: #00f7ff;
    --secondary: #ff00ff;
    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --text: #ffffff;
    --text-muted: #a0a0c0;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --neon-glow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

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

/* Layout */
section {
    min-height: 100vh;
    padding: 6rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typewriter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

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

.highlight {
    color: var(--primary);
    display: inline-block;
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-right: 1rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    border: 2px solid transparent;
}

.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary::before {
    background: var(--primary);
}

.secondary:hover {
    color: var(--bg-dark);
}

/* About Section */
.about {
    background-color: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: rgba(0, 247, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 247, 255, 0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

/* Work Section */
.work {
    background-color: var(--bg-dark);
}

.case-studies {
    display: grid;
    gap: 2rem;
}

.case-study {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 247, 255, 0.2);
}

.case-preview {
    padding: 2rem;
    cursor: pointer;
}

.case-tags {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.case-tags span {
    background: rgba(0, 247, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.case-details {
    display: none;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study.active .case-details {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.case-visualization {
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(0, 247, 255, 0.05);
    border-color: rgba(0, 247, 255, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer Instagram Button */
.footer-section {
    text-align: left;
}

.footer-section h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-contact {
    margin-top: 1.5rem;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.2);
    border: none;
    cursor: pointer;
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.3);
}

.instagram-btn i {
    font-size: 1.1rem;
}

.instagram-btn span {
    position: relative;
    top: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.5rem;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--primary);
    background: rgba(0, 247, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 247, 255, 0.2);
}

.instagram {
    color: #e1306c;
}

.instagram:hover {
    color: #e1306c;
    border-color: #e1306c;
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.3);
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(225, 48, 108, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Projects Section */
.projects {
    background-color: var(--bg-dark);
    padding: 6rem 10%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 247, 255, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, #0a0a1a, #0f0f2d);
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-overlay h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-overlay p {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(0, 247, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.project-info p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.btn.small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-darker);
    color: var(--text-muted);
    padding: 4rem 10% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--text);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

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

.social-icon {
    width: auto;
    height: 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
    padding: 0 15px;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.instagram-text {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    width: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-icon:hover .instagram-text {
    opacity: 1;
    width: auto;
    margin-left: 5px;
}

.social-icon.instagram {
    background: rgba(225, 48, 108, 0.1);
    border-color: rgba(225, 48, 108, 0.2);
}

.social-icon.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    color: #e1306c;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--bg-darker);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* Cursor */
.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    z-index: 9999;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease-out;
    z-index: 9998;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(40px);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #00ff88;
    top: 60%;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 12s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero, .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero {
        padding-top: 8rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .case-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 5rem 1.5rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 1rem 0;
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00f7ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    10% { clip: rect(112px, 9999px, 76px, 0); }
    20% { clip: rect(85px, 9999px, 77px, 0); }
    30% { clip: rect(27px, 9999px, 97px, 0); }
    40% { clip: rect(64px, 9999px, 98px, 0); }
    50% { clip: rect(61px, 9999px, 85px, 0); }
    60% { clip: rect(99px, 9999px, 114px, 0); }
    70% { clip: rect(34px, 9999px, 115px, 0); }
    80% { clip: rect(98px, 9999px, 129px, 0); }
    90% { clip: rect(43px, 9999px, 96px, 0); }
    100% { clip: rect(82px, 9999px, 64px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    10% { clip: rect(52px, 9999px, 114px, 0); }
    20% { clip: rect(86px, 9999px, 91px, 0); }
    30% { clip: rect(95px, 9999px, 98px, 0); }
    40% { clip: rect(53px, 9999px, 66px, 0); }
    50% { clip: rect(101px, 9999px, 94px, 0); }
    60% { clip: rect(25px, 9999px, 129px, 0); }
    70% { clip: rect(79px, 9999px, 85px, 0); }
    80% { clip: rect(98px, 9999px, 70px, 0); }
    90% { clip: rect(95px, 9999px, 60px, 0); }
    100% { clip: rect(88px, 9999px, 140px, 0); }
}
