/* --- REMOVED old @property rule --- */

/* --- Keyframes for Animated Border (from your example) --- */
@keyframes rotate {
	100% {
		transform: translate(-50%, -50%) rotate(1turn);
	}
}


/* --- Base Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0A0A0A; 
    color: #E0E0E0;
    overflow-x: hidden;
}

/* --- Utility Classes --- */

/* Custom gradient text - UPDATED to purple/cyan theme */
.gradient-text {
    background: linear-gradient(to right, #00BFFF, #9D00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Gradient Button - UPDATED to purple/cyan theme --- */
.gradient-btn {
    /* UPDATED: Removed background-image. It's now handled by the ::after pseudo-element */
    transition: all 0.3s ease;
    /* This shadow is now on the button itself */
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4), 0 0 20px rgba(157, 0, 255, 0.4);
    position: relative;
    z-index: 1;
}
.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.7), 0 0 35px rgba(157, 0, 255, 0.7);
}

/* --- Header & Navigation --- */
.glass-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(10, 10, 10, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

section[id] {
    scroll-margin-top: 80px;
}

/* --- Animated Hamburger Menu --- */
.hamburger {
    padding: 15px;
    cursor: pointer;
    display: inline-block;
    border: none;
    background: transparent;
    transition: opacity 0.3s ease;
}

.hamburger:hover {
    opacity: 0.8;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px auto;
    background-color: #E0E0E0;
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
}

.hamburger.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- NEW (THE FIX): Animated Glowing Border Effect --- */
/* This is the logic from your example, applied to our class */
.glowing-border-box {
    position: relative;
    z-index: 1; 
    overflow: hidden; /* This is crucial */
    border-radius: 0.75rem; /* 12px (matches old rounded-xl) */
    
    /* This adds the blurred outer glow you wanted - UPDATED to purple */
    filter: drop-shadow(0 0 10px rgba(157, 0, 255, 0.5));
}

/* The rotating gradient (z-index: -2) */
.glowing-border-box::before {
    content: '';
    position: absolute;
    z-index: -2;
    top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
    width: 300vw; /* Massive size to ensure coverage */
    height: 300vw;
    background-repeat: no-repeat;
	background-position: 0 0;
    /* UPDATED: Using our purple/cyan colors */
	background-image: conic-gradient(rgba(0,0,0,0), #9D00FF, #00BFFF, rgba(0,0,0,0) 25%);
	animation: rotate 4s linear infinite;
}

/* The inner mask (z-index: -1) */
.glowing-border-box::after {
    content: '';
	position: absolute;
	z-index: -1;
    /* This is our border width */
	left: 2px;
	top: 2px;
	width: calc(100% - 4px); /* 100% - (2 * border width) */
	height: calc(100% - 4px); /* 100% - (2 * border width) */
    /* This is the background color of our box */
	background: #1C1C1C;
	border-radius: 0.625rem; /* 10px (which is 12px - 2px) */
}


/* --- NEW (THE FIX): Animated Glow for Buttons --- */
.glowing-btn {
    position: relative;
    z-index: 1;
    overflow: hidden; /* Crucial */
    border-radius: 0.5rem; /* 8px (matches old rounded-lg) */
    border: 2px solid transparent; /* Keeps layout stable */
    
    /* This adds the blurred outer glow */
    filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.6));
}

/* The rotating gradient (z-index: -2) */
.glowing-btn::before {
    content: '';
    position: absolute;
    z-index: -2;
    top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
    width: 500%; /* Needs to be big for small buttons */
    height: 500%;
    background-repeat: no-repeat;
	background-position: 0 0;
    /* UPDATED: Using our purple/cyan colors */
	background-image: conic-gradient(rgba(0,0,0,0), #9D00FF, #00BFFF, rgba(0,0,0,0) 30%);
	animation: rotate 4s linear infinite;
}

/* The inner mask (z-index: -1) */
.glowing-btn::after {
    content: '';
	position: absolute;
	z-index: -1;
	left: 2px;
	top: 2px;
	width: calc(100% - 4px);
	height: calc(100% - 4px);
    /* UPDATED: The mask is now the button's gradient - UPDATED to purple */
    background-image: linear-gradient(to right, #00BFFF 0%, #9D00FF 100%);
	border-radius: 0.375rem; /* 6px (which is 8px - 2px) */
}


/* --- Section Overlap --- */
#services {
    margin-top: -6rem;
    background-color: transparent; 
}

#hero {
    background-color: #0A0A0A;
}

/* --- Timeline Layout --- */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-w: 4xl;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #374151;
    display: none;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1f2937;
    border: 3px solid #0A0A0A;
}

.timeline-dot::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--dot-color, #00BFFF);
    border-radius: 9999px;
}

.timeline-content {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .timeline-container::before {
        display: block;
    }
    
    .timeline-item {
        grid-template-columns: 1fr 2rem 1fr;
        padding-left: 0;
    }

    .timeline-dot {
        position: relative;
        grid-column: 2 / 3;
        left: 50%;
        top: 0.5rem;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 1 / 2;
        text-align: right;
    }

    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 3 / 4;
        text-align: left;
    }
}


/* --- NEW: Step Image Styles --- */
.step-image {
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #374151;
}


/* --- Form Styles --- */
.form-input:focus {
    /* UPDATED to purple */
    border-color: #9D00FF;
    box-shadow: 0 0 0 3px rgba(157, 0, 255, 0.5);
    outline: none;
}

/* --- Lightbox Styles --- */
#lightbox-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#lightbox-modal.hidden {
    opacity: 0;
    visibility: hidden;
}
#lightbox-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#lightbox-close {
    transition: transform 0.3s ease, color 0.3s ease;
}
#lightbox-close:hover {
    /* UPDATED to purple */
    color: #9D00FF;
}

